diff options
author | Guy Harris <guy@alum.mit.edu> | 2000-04-13 09:17:09 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2000-04-13 09:17:09 +0000 |
commit | c577b0ef604bceb8214549f9ea6ee970f214396a (patch) | |
tree | bd9c597c96117e6edbc714da61ae9f397c5a9852 /gtk/summary_dlg.c | |
parent | fb7dffb8c0b38c8fa2418eca8a35a24d1af35125 (diff) | |
download | wireshark-c577b0ef604bceb8214549f9ea6ee970f214396a.tar.gz wireshark-c577b0ef604bceb8214549f9ea6ee970f214396a.tar.bz2 wireshark-c577b0ef604bceb8214549f9ea6ee970f214396a.zip |
As we always have to have a filter string (thanks to a bug in the Linux
libpcap), if we have a null filter string we report it as "no filter",
just as we would do for a null filter string pointer.
svn path=/trunk/; revision=1844
Diffstat (limited to 'gtk/summary_dlg.c')
-rw-r--r-- | gtk/summary_dlg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/summary_dlg.c b/gtk/summary_dlg.c index 687a9a1787..d3db39e519 100644 --- a/gtk/summary_dlg.c +++ b/gtk/summary_dlg.c @@ -1,7 +1,7 @@ /* summary_dlg.c * Routines for capture file summary window * - * $Id: summary_dlg.c,v 1.2 2000/04/01 09:16:49 guy Exp $ + * $Id: summary_dlg.c,v 1.3 2000/04/13 09:17:09 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -183,7 +183,7 @@ summary_open_cb(GtkWidget *w, gpointer d) #ifdef HAVE_LIBPCAP /* Capture filter */ - if (summary.cfilter) { + if (summary.cfilter && summary.cfilter[0] != '\0') { snprintf(string_buff, SUM_STR_MAX, "Capture filter: %s", summary.cfilter); } else { sprintf(string_buff, "Capture filter: none"); |