diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-09-10 06:55:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-09-10 06:55:28 +0000 |
commit | 29ea42f8689cd661802f8e693ec964efc923c913 (patch) | |
tree | 8be30f8b1dc0fe47aa0c78037fd82f17077a8854 /gtk/capture_dlg.c | |
parent | 0de9c67adf0133cd6436ed963613f0729cb0eacd (diff) |
If we have no interfaces, don't set the popdown list for interface combo
boxes.
svn path=/trunk/; revision=8443
Diffstat (limited to 'gtk/capture_dlg.c')
-rw-r--r-- | gtk/capture_dlg.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk/capture_dlg.c b/gtk/capture_dlg.c index 98d835c54c..55c5fd5050 100644 --- a/gtk/capture_dlg.c +++ b/gtk/capture_dlg.c @@ -1,7 +1,7 @@ /* capture_dlg.c * Routines for packet capture windows * - * $Id: capture_dlg.c,v 1.81 2003/09/10 05:35:25 guy Exp $ + * $Id: capture_dlg.c,v 1.82 2003/09/10 06:55:28 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -223,8 +223,10 @@ capture_prep_cb(GtkWidget *w _U_, gpointer d _U_) if_cb = gtk_combo_new(); combo_list = build_capture_combo_list(if_list, TRUE); - gtk_combo_set_popdown_strings(GTK_COMBO(if_cb), combo_list); - free_capture_combo_list(combo_list); + if (combo_list != NULL) { + gtk_combo_set_popdown_strings(GTK_COMBO(if_cb), combo_list); + free_capture_combo_list(combo_list); + } if (cfile.iface == NULL && prefs.capture_device != NULL) { /* No interface was specified on the command line or in a previous capture, but there is one specified in the preferences file; |