Fix: iterator.c: initialize `status` (may be used uninitialized)
[babeltrace.git] / src / lib / graph / iterator.c
index 511a1f981ba020c18c91285ba4e139d17b806f64..29cf279d691d5b68f49a668743ca2d28646adb50 100644 (file)
@@ -1542,7 +1542,7 @@ int find_message_ge_ns_from_origin(
                struct bt_self_component_port_input_message_iterator *iterator,
                int64_t ns_from_origin, GHashTable *stream_states)
 {
-       int status;
+       int status = BT_FUNC_STATUS_OK;
        enum bt_self_component_port_input_message_iterator_state init_state =
                iterator->state;
        const struct bt_message *messages[MSG_BATCH_SIZE];
This page took 0.023784 seconds and 4 git commands to generate.