From: David Goulet Date: Mon, 22 Oct 2012 21:15:19 +0000 (-0400) Subject: Fix: Uninitialized ret code X-Git-Tag: v2.1.0-rc6~30 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=c801b30e68fa643d789a8f0912a278bf1c2683ca;p=lttng-tools.git Fix: Uninitialized ret code Signed-off-by: David Goulet --- 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;