Fix: ret may be used uninitialized in sample_channel_positions()
[lttng-tools.git] / src / common / consumer / consumer-timer.c
index 721f146e20fdff2a5d7cecd0e488008bd618269f..38b8b30d29faac24d0d6500e90841fae08d0b0a0 100644 (file)
@@ -637,7 +637,7 @@ int sample_channel_positions(struct lttng_consumer_channel *channel,
                sample_positions_cb sample, get_consumed_cb get_consumed,
                get_produced_cb get_produced)
 {
-       int ret;
+       int ret = 0;
        struct lttng_ht_iter iter;
        struct lttng_consumer_stream *stream;
        bool empty_channel = true;
This page took 0.02407 seconds and 4 git commands to generate.