Fix: Uninitialized ret code
authorDavid Goulet <dgoulet@efficios.com>
Mon, 22 Oct 2012 21:15:19 +0000 (17:15 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 22 Oct 2012 21:15:19 +0000 (17:15 -0400)
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/consumer.c

index 061ec1219c90ad5ef3bd0ea4e217424927864358..1e20948887b1f889ae67bb81e3e844499edef869 100644 (file)
@@ -707,7 +707,7 @@ int consumer_is_data_available(unsigned int id,
                struct consumer_output *consumer)
 {
        int ret;
-       int32_t ret_code;
+       int32_t ret_code = 1;  /* Default is that the data is available */
        struct consumer_socket *socket;
        struct lttng_ht_iter iter;
        struct lttcomm_consumer_msg msg;
This page took 0.025594 seconds and 4 git commands to generate.