From c801b30e68fa643d789a8f0912a278bf1c2683ca Mon Sep 17 00:00:00 2001 From: David Goulet Date: Mon, 22 Oct 2012 17:15:19 -0400 Subject: [PATCH] Fix: Uninitialized ret code Signed-off-by: David Goulet --- src/bin/lttng-sessiond/consumer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/lttng-sessiond/consumer.c b/src/bin/lttng-sessiond/consumer.c index 061ec1219..1e2094888 100644 --- a/src/bin/lttng-sessiond/consumer.c +++ b/src/bin/lttng-sessiond/consumer.c @@ -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; -- 2.34.1