From 1875ba3ceefec3172d442f3b066fa61954cf37bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 25 Nov 2016 12:45:01 -0500 Subject: [PATCH] Handle NULL stream/packet/event headers, contexts and payloads MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérémie Galarneau --- plugins/text/print.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/text/print.c b/plugins/text/print.c index 3a683a838..bef503144 100644 --- a/plugins/text/print.c +++ b/plugins/text/print.c @@ -1035,7 +1035,6 @@ enum bt_component_status print_stream_packet_context(struct text_component *text } main_field = bt_ctf_packet_get_context(packet); if (!main_field) { - ret = BT_COMPONENT_STATUS_ERROR; goto end; } if (!text->start_line) { @@ -1062,7 +1061,6 @@ enum bt_component_status print_event_header_raw(struct text_component *text, main_field = bt_ctf_event_get_header(event); if (!main_field) { - ret = BT_COMPONENT_STATUS_ERROR; goto end; } if (!text->start_line) { @@ -1088,7 +1086,6 @@ enum bt_component_status print_stream_event_context(struct text_component *text, main_field = bt_ctf_event_get_stream_event_context(event); if (!main_field) { - ret = BT_COMPONENT_STATUS_ERROR; goto end; } if (!text->start_line) { @@ -1114,7 +1111,6 @@ enum bt_component_status print_event_context(struct text_component *text, main_field = bt_ctf_event_get_event_context(event); if (!main_field) { - ret = BT_COMPONENT_STATUS_ERROR; goto end; } if (!text->start_line) { @@ -1140,7 +1136,6 @@ enum bt_component_status print_event_payload(struct text_component *text, main_field = bt_ctf_event_get_payload_field(event); if (!main_field) { - ret = BT_COMPONENT_STATUS_ERROR; goto end; } if (!text->start_line) { -- 2.34.1