From 0e50979b3f45250ee1dacd5c826a281ad9a9c460 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 18 Jun 2021 19:21:42 +0100 Subject: Replace g_assert() with ws_assert() --- epan/tvbuff.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'epan/tvbuff.c') diff --git a/epan/tvbuff.c b/epan/tvbuff.c index d737fad84f..1caaa3cae0 100644 --- a/epan/tvbuff.c +++ b/epan/tvbuff.c @@ -32,6 +32,7 @@ #include "wsutil/unicode-utils.h" #include "wsutil/nstime.h" #include "wsutil/time_util.h" +#include #include "tvbuff.h" #include "tvbuff-int.h" #include "strutil.h" @@ -70,7 +71,7 @@ tvb_new(const struct tvb_ops *ops) tvbuff_t *tvb; gsize size = ops->tvb_size; - g_assert(size >= sizeof(*tvb)); + ws_assert(size >= sizeof(*tvb)); tvb = (tvbuff_t *) g_slice_alloc(size); @@ -4433,7 +4434,7 @@ tvb_get_varint(tvbuff_t *tvb, guint offset, guint maxlen, guint64 *value, const *value = tvb_get_ntoh64(tvb, offset) & G_GUINT64_CONSTANT(0x3FFFFFFFFFFFFFFF); return 8; default: /* No Possible */ - g_assert_not_reached(); + ws_assert_not_reached(); break; } -- cgit v1.2.3