aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-01-13 21:10:38 +0000
committerGuy Harris <guy@alum.mit.edu>2004-01-13 21:10:38 +0000
commit053ec89a5da1f015964dc84040f887b76ce0b53f (patch)
tree4ac261fcbf5aea47071d9f01f35252ef012df1b2 /gtk
parent982a4976c75c61fe675f73d53618c50359174227 (diff)
"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')
-rw-r--r--gtk/io_stat.c5
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))){