aboutsummaryrefslogtreecommitdiffstats
path: root/filter.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1998-12-22 07:07:11 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1998-12-22 07:07:11 +0000
commitb9084e83cb8e06e0edf815fe78a9f20907e36745 (patch)
treec81c8fe80c0d8321a46f4859f8baae9ffcf4b208 /filter.c
parente37cbc4fc1ef21b3aeaad4dedde591ea49c14c4b (diff)
Fixed more bugs with dialogues and gtk+-1.1.x.
svn path=/trunk/; revision=137
Diffstat (limited to 'filter.c')
-rw-r--r--filter.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/filter.c b/filter.c
index e05b001834..5005f0e046 100644
--- a/filter.c
+++ b/filter.c
@@ -1,7 +1,7 @@
/* filter.c
* Routines for managing filter sets
*
- * $Id: filter.c,v 1.10 1998/12/17 05:42:24 gram Exp $
+ * $Id: filter.c,v 1.11 1998/12/22 07:07:10 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -244,7 +244,10 @@ filter_sel_list_cb(GtkWidget *l, gpointer data) {
GtkObject *l_item;
gint sensitivity = FALSE;
- sl = GTK_LIST(l)->selection;
+ if (l)
+ sl = GTK_LIST(l)->selection;
+ else
+ sl = NULL;
if (sl) { /* Something was selected */
l_item = GTK_OBJECT(sl->data);