diff options
author | Lars Roland <Lars.Roland@gmx.net> | 2006-03-07 13:11:08 +0000 |
---|---|---|
committer | Lars Roland <Lars.Roland@gmx.net> | 2006-03-07 13:11:08 +0000 |
commit | b51d8f3f89a13371447b44cc78bb0eae611f5d44 (patch) | |
tree | 02e8cbc70fb73eeda30faedfb61056e80c35df6f /gtk/sip_stat.c | |
parent | 7fc017a5c429cd1fbbb098ecca31b893bc318e17 (diff) | |
download | wireshark-b51d8f3f89a13371447b44cc78bb0eae611f5d44.tar.gz |
Use g_assert to save us from dereferencing a NULL pointer. g_warning is not strong enough. This should fix a defect discovered by coverity.
svn path=/trunk/; revision=17493
Diffstat (limited to 'gtk/sip_stat.c')
-rw-r--r-- | gtk/sip_stat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk/sip_stat.c b/gtk/sip_stat.c index 4f26d1064c..c4661aeca2 100644 --- a/gtk/sip_stat.c +++ b/gtk/sip_stat.c @@ -193,6 +193,8 @@ sip_draw_hash_requests(gchar *key _U_ , sip_request_method_t *data, gchar * unus { gchar string_buff[SUM_STR_MAX]; + g_assert(data!=NULL); + if (data->packets==0) { return; @@ -222,10 +224,8 @@ sip_draw_hash_responses(gint * key _U_ , sip_response_code_t *data, gchar * unus { gchar string_buff[SUM_STR_MAX]; - if (data==NULL) - { - g_warning("C'est quoi ce borderl key=%d\n", *key); - } + g_assert(data!=NULL); + if (data->packets==0) { return; |