Fix: BT_ASSERT() on variable not yet initialized
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Fri, 15 Feb 2019 21:52:08 +0000 (16:52 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:38 +0000 (18:19 -0400)
Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/ctf/common/msg-iter/msg-iter.c

index d7cb7f37a88d47dbddfad3a1326617eba0769467..5cd91179539c7cf0ac7a8578959fa1a2274e7db2 100644 (file)
@@ -2994,8 +2994,8 @@ enum bt_msg_iter_status bt_msg_iter_get_packet_properties(
 
        props->exp_packet_total_size = notit->cur_exp_packet_total_size;
        props->exp_packet_content_size = notit->cur_exp_packet_content_size;
-       BT_ASSERT(props->stream_class_id >= 0);
        props->stream_class_id = (uint64_t) notit->cur_stream_class_id;
+       BT_ASSERT(props->stream_class_id >= 0);
        props->data_stream_id = notit->cur_data_stream_id;
        props->snapshots.discarded_events = notit->snapshots.discarded_events;
        props->snapshots.packets = notit->snapshots.packets;
This page took 0.026694 seconds and 4 git commands to generate.