aboutsummaryrefslogtreecommitdiffstats
path: root/epan/stream.c
diff options
context:
space:
mode:
authorJoão Valverde <joao.valverde@tecnico.ulisboa.pt>2021-06-18 19:21:42 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-06-19 01:23:31 +0000
commit0e50979b3f45250ee1dacd5c826a281ad9a9c460 (patch)
treecfaf2f2221f9ebd948fab14b180cd3219dcc3523 /epan/stream.c
parentb4eddd32c18816b7b5f9e074b88559d88f28123c (diff)
Replace g_assert() with ws_assert()
Diffstat (limited to 'epan/stream.c')
-rw-r--r--epan/stream.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/stream.c b/epan/stream.c
index 153cd66ea6..5bad6037f7 100644
--- a/epan/stream.c
+++ b/epan/stream.c
@@ -18,6 +18,7 @@
#include <epan/reassemble.h>
#include <epan/stream.h>
#include <epan/tvbuff.h>
+#include <wsutil/ws_assert.h>
typedef struct {
@@ -103,7 +104,7 @@ static void cleanup_stream_hash( void ) {
/* init function, call from stream_init() */
static void init_stream_hash( void ) {
- g_assert(stream_hash==NULL);
+ ws_assert(stream_hash==NULL);
stream_hash = g_hash_table_new(stream_hash_func,
stream_compare_func);
}
@@ -221,7 +222,7 @@ static void cleanup_fragment_hash( void ) {
/* init function, call from stream_init() */
static void init_fragment_hash( void ) {
- g_assert(fragment_hash==NULL);
+ ws_assert(fragment_hash==NULL);
fragment_hash = g_hash_table_new(fragment_hash_func,
fragment_compare_func);
}