From: David Goulet Date: Tue, 14 May 2013 16:54:46 +0000 (-0400) Subject: Fix: Uninitialized scalar variable in consumer X-Git-Tag: v2.2.0-rc3~68 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e56251fcd578c85ad24a36b3768fa6b095fc59e1;p=lttng-tools.git Fix: Uninitialized scalar variable in consumer In notify_channel_pipe: Use of an uninitialized variable (CWE-457). Issue 1019894 of coverity scan. Signed-off-by: David Goulet --- diff --git a/src/common/consumer.c b/src/common/consumer.c index 01266a700..2dd463c14 100644 --- a/src/common/consumer.c +++ b/src/common/consumer.c @@ -99,6 +99,8 @@ static void notify_channel_pipe(struct lttng_consumer_local_data *ctx, struct consumer_channel_msg msg; int ret; + memset(&msg, 0, sizeof(msg)); + msg.action = action; msg.chan = chan; do {