Fix: Uninitialized ret code
[lttng-tools.git] / 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.023009 seconds and 4 git commands to generate.