Initialize all stack variables to zero, fix uninitialized loglevel variables
[lttng-tools.git] / src / bin / lttng / commands / add_context.c
index ed4f87fb4e84fd11c4518fa866194d8611da6903..e499ef3d37894eb3aababec3d4ad59c18abbd964 100644 (file)
@@ -369,6 +369,9 @@ static int add_context(char *session_name)
        struct ctx_type *type;
        char *ptr;
 
+       memset(&context, 0, sizeof(context));
+       memset(&dom, 0, sizeof(dom));
+
        if (opt_kernel) {
                dom.type = LTTNG_DOMAIN_KERNEL;
        } else if (opt_userspace) {
This page took 0.024566 seconds and 5 git commands to generate.