From 0a202bc4f60c5106cb23ae5466828d8dea94109a Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 23 Feb 2014 19:19:32 +0100 Subject: Fix packet-h223.c:842:18: error: will never be executed [-Werror,-Wunreachable-code] Change-Id: I8255a3841add78eaa167ef631effe58d9fb12736 Reviewed-on: https://code.wireshark.org/review/323 Reviewed-by: Evan Huus --- epan/dissectors/packet-h223.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'epan/dissectors/packet-h223.c') diff --git a/epan/dissectors/packet-h223.c b/epan/dissectors/packet-h223.c index 970b1af90e..94abe57c7e 100644 --- a/epan/dissectors/packet-h223.c +++ b/epan/dissectors/packet-h223.c @@ -837,10 +837,10 @@ mux_element_sublist_size( h223_mux_element* me ) length += current_me->repeat_count; current_me = current_me->next; } - if ( length == 0 ) { /* should never happen, but to avoid infinite loops... */ - DISSECTOR_ASSERT_NOT_REACHED(); - length = 1; - } + + /* should never happen, but to avoid infinite loops... */ + DISSECTOR_ASSERT(length != 0); + return length; } -- cgit v1.2.1