diff options
author | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 1998-12-22 07:07:11 +0000 |
---|---|---|
committer | gram <gram@f5534014-38df-0310-8fa8-9805f1628bb7> | 1998-12-22 07:07:11 +0000 |
commit | 1ac9b39c37a1f6ae48e2c684d0fb6eed5fdace75 (patch) | |
tree | c81c8fe80c0d8321a46f4859f8baae9ffcf4b208 /filter.c | |
parent | d82cebd6190ce6108cbff6c4a0a2e6967cab07cb (diff) |
Fixed more bugs with dialogues and gtk+-1.1.x.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@137 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'filter.c')
-rw-r--r-- | filter.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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); |