Fix: Uninitialized ret code
[lttng-tools.git] / src / bin / lttng-sessiond / consumer.c
index 3a4577ab0bb36dfa98aa655447526bfdf8717131..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;
@@ -720,6 +720,7 @@ int consumer_is_data_available(unsigned int id,
 
        DBG3("Consumer data available for id %u", id);
 
+       /* Send command for each consumer */
        cds_lfht_for_each_entry(consumer->socks->ht, &iter.iter, socket,
                        node.node) {
                /* Code flow error */
This page took 0.026595 seconds and 5 git commands to generate.