From: Francis Deslauriers Date: Fri, 15 Feb 2019 21:52:08 +0000 (-0500) Subject: Fix: BT_ASSERT() on variable not yet initialized X-Git-Tag: v2.0.0-pre5~139 X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=aaafe39182325f7280ce0661769c1c9c89e17d33;p=babeltrace.git Fix: BT_ASSERT() on variable not yet initialized Signed-off-by: Francis Deslauriers --- diff --git a/plugins/ctf/common/msg-iter/msg-iter.c b/plugins/ctf/common/msg-iter/msg-iter.c index d7cb7f37..5cd91179 100644 --- a/plugins/ctf/common/msg-iter/msg-iter.c +++ b/plugins/ctf/common/msg-iter/msg-iter.c @@ -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;