Fix: Uninitialized scalar variable in consumer
authorDavid Goulet <dgoulet@efficios.com>
Tue, 14 May 2013 16:54:46 +0000 (12:54 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Wed, 15 May 2013 14:21:07 +0000 (10:21 -0400)
In notify_channel_pipe: Use of an uninitialized variable (CWE-457).

Issue 1019894 of coverity scan.

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/consumer.c

index 01266a700cb37199966c9257eba335689e877453..2dd463c1431f72e9fd1bf35d8551fddad5b28f4a 100644 (file)
@@ -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 {
This page took 0.027887 seconds and 4 git commands to generate.