From: Jérémie Galarneau Date: Tue, 8 Mar 2016 15:59:49 +0000 (-0500) Subject: Initialize command header to zero X-Git-Tag: v2.8.0-rc1~106 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=b2d6628742a005a7583d4d884643ca8658b25ba2;p=lttng-tools.git Initialize command header to zero Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 3f3ce4f14..dbd99cc63 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -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,