From 986fec7f3ba9db9b60fe209fb5d41ba5d291cde5 Mon Sep 17 00:00:00 2001 From: Dario Lombardo Date: Wed, 20 Nov 2019 16:02:32 +0100 Subject: [PATCH] print: remove assert in get_field_data(). The check in the caller suggests this function can fail. The assert should not be necessary, then. Bug: 16218 Change-Id: Ic2186f3c51751db61436719bbf5bce609d364d40 Reviewed-on: https://code.wireshark.org/review/35162 Petri-Dish: Anders Broman Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman --- epan/print.c | 1 - 1 file changed, 1 deletion(-) diff --git a/epan/print.c b/epan/print.c index f968025a8f..9d24da07a2 100644 --- a/epan/print.c +++ b/epan/print.c @@ -1721,7 +1721,6 @@ get_field_data(GSList *src_list, field_info *fi) return tvb_get_ptr(src_tvb, fi->start, length); } } - g_assert_not_reached(); return NULL; /* not found */ }