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/profile.c | |
parent | b4eddd32c18816b7b5f9e074b88559d88f28123c (diff) | |
download | wireshark-0e50979b3f45250ee1dacd5c826a281ad9a9c460.tar.gz wireshark-0e50979b3f45250ee1dacd5c826a281ad9a9c460.tar.bz2 wireshark-0e50979b3f45250ee1dacd5c826a281ad9a9c460.zip |
Replace g_assert() with ws_assert()
Diffstat (limited to 'ui/profile.c')
-rw-r--r-- | ui/profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ui/profile.c b/ui/profile.c index 4fc2c2bccb..e75150e24e 100644 --- a/ui/profile.c +++ b/ui/profile.c @@ -24,6 +24,7 @@ #include "ui/recent.h" #include <wsutil/file_util.h> +#include <wsutil/ws_assert.h> static GList *current_profiles = NULL; static GList *edited_profiles = NULL; @@ -268,7 +269,7 @@ empty_profile_list(gboolean edit_list) *flpp = remove_profile_entry(*flpp, g_list_first(*flpp)); } - g_assert(g_list_length(*flpp) == 0); + ws_assert(g_list_length(*flpp) == 0); if ( ! edited_profiles ) edited_profiles = NULL; } @@ -279,7 +280,7 @@ empty_profile_list(gboolean edit_list) *flpp = remove_profile_entry(*flpp, g_list_first(*flpp)); } - g_assert(g_list_length(*flpp) == 0); + ws_assert(g_list_length(*flpp) == 0); if ( ! current_profiles ) current_profiles = NULL; } |