From e56251fcd578c85ad24a36b3768fa6b095fc59e1 Mon Sep 17 00:00:00 2001 From: David Goulet Date: Tue, 14 May 2013 12:54:46 -0400 Subject: [PATCH] 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 --- src/common/consumer.c | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.34.1