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 /ui/proto_hier_stats.c | |
parent | b4eddd32c18816b7b5f9e074b88559d88f28123c (diff) |
Replace g_assert() with ws_assert()
Diffstat (limited to 'ui/proto_hier_stats.c')
-rw-r--r-- | ui/proto_hier_stats.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/proto_hier_stats.c b/ui/proto_hier_stats.c index ddc6e62ba5..31583b5491 100644 --- a/ui/proto_hier_stats.c +++ b/ui/proto_hier_stats.c @@ -18,6 +18,7 @@ #include "ui/progress_dlg.h" #include "epan/epan_dissect.h" #include "epan/proto.h" +#include <wsutil/ws_assert.h> /* Update the progress bar this many times when scanning the packet list. */ #define N_PROGBAR_UPDATES 100 @@ -88,7 +89,7 @@ process_node(proto_node *ptree_node, GNode *parent_stat_node, ph_stats_t *ps) finfo = PNODE_FINFO(ptree_node); /* We don't fake protocol nodes we expect them to have a field_info. * Dissection with faked proto tree? */ - g_assert(finfo); + ws_assert(finfo); /* If the field info isn't related to a protocol but to a field, * don't count them, as they don't belong to any protocol. @@ -255,7 +256,7 @@ ph_stats_new(capture_file *cf) /* let's not divide by zero. I should never be started * with count == 0, so let's assert that */ - g_assert(cf->count > 0); + ws_assert(cf->count > 0); progbar_val = (gfloat) count / cf->count; |