diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-01-13 21:10:38 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-01-13 21:10:38 +0000 |
commit | 053ec89a5da1f015964dc84040f887b76ce0b53f (patch) | |
tree | 4ac261fcbf5aea47071d9f01f35252ef012df1b2 /gtk/io_stat.c | |
parent | 982a4976c75c61fe675f73d53618c50359174227 (diff) | |
download | wireshark-053ec89a5da1f015964dc84040f887b76ce0b53f.tar.gz wireshark-053ec89a5da1f015964dc84040f887b76ce0b53f.tar.bz2 wireshark-053ec89a5da1f015964dc84040f887b76ce0b53f.zip |
"dfilter_compile()" supplies a null dfilter pointer for an empty filter
expression; don't assume it always supplies a non-null pointer.
svn path=/trunk/; revision=9657
Diffstat (limited to 'gtk/io_stat.c')
-rw-r--r-- | gtk/io_stat.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index c4cc1fa592..ebae3d6537 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -1,7 +1,7 @@ /* io_stat.c * io_stat 2002 Ronnie Sahlberg * - * $Id: io_stat.c,v 1.55 2004/01/13 21:04:52 guy Exp $ + * $Id: io_stat.c,v 1.56 2004/01/13 21:10:38 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -1494,7 +1494,8 @@ filter_callback(GtkWidget *widget _U_, io_stat_graph_t *gio) io_stat_redraw(gio->io); return 0; } - dfilter_free(dfilter); + if (dfilter != NULL) + dfilter_free(dfilter); /* this graph is not active, just update display and redraw */ if(!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(gio->display_button))){ |