Fix: maybe-uninitialized warning in bt_ctf_stream_flush()
[babeltrace.git] / lib / ctf-writer / stream.c
index 3546facd0bf42a7dd1b155ea5516c5265387934e..8912b011f9b45c9c5e66635c9bded761d6699dd3 100644 (file)
@@ -1605,7 +1605,7 @@ int bt_ctf_stream_flush(struct bt_ctf_stream *stream)
 {
        int ret = 0;
        size_t i;
-       uint64_t packet_context_offset_bits;
+       uint64_t packet_context_offset_bits = 0;
        struct bt_ctf_trace *trace;
        enum bt_ctf_byte_order native_byte_order;
        bool has_packet_size = false;
This page took 0.026903 seconds and 4 git commands to generate.