Initialize command header to zero
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Mar 2016 15:59:49 +0000 (10:59 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 8 Mar 2016 15:59:49 +0000 (10:59 -0500)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng-sessiond/main.c

index 3f3ce4f1493dba040fdae3f1f8a140d5de2338d7..dbd99cc637659e242c1012cd6717f20b4e0a36d4 100644 (file)
@@ -3873,6 +3873,7 @@ error_add_context:
                struct lttcomm_event_command_header cmd_header;
                size_t total_size;
 
+               memset(&cmd_header, 0, sizeof(cmd_header));
                /* Extended infos are included at the end of events */
                nb_event = cmd_list_events(cmd_ctx->lsm->domain.type,
                        cmd_ctx->session, cmd_ctx->lsm->u.list.channel_name,
This page took 0.034801 seconds and 4 git commands to generate.