aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-02-23 19:19:32 +0100
committerEvan Huus <eapache@gmail.com>2014-03-02 13:19:31 +0000
commit0a202bc4f60c5106cb23ae5466828d8dea94109a (patch)
treec88108bfdbdd0dedd8e1ff0a8687c20cdd1ac952
parent5f78d0f4f1df67c7965248e9b4397e1da0ad48ae (diff)
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 <eapache@gmail.com>
-rw-r--r--epan/dissectors/packet-h223.c8
1 files changed, 4 insertions, 4 deletions
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;
}