diff options
author | João Valverde <joao.valverde@tecnico.ulisboa.pt> | 2021-06-18 19:21:42 +0100 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-06-19 01:23:31 +0000 |
commit | 0e50979b3f45250ee1dacd5c826a281ad9a9c460 (patch) | |
tree | cfaf2f2221f9ebd948fab14b180cd3219dcc3523 /epan/tvbuff.c | |
parent | b4eddd32c18816b7b5f9e074b88559d88f28123c (diff) |
Replace g_assert() with ws_assert()
Diffstat (limited to 'epan/tvbuff.c')
-rw-r--r-- | epan/tvbuff.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <wsutil/ws_assert.h> #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; } |