From c577b0ef604bceb8214549f9ea6ee970f214396a Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 13 Apr 2000 09:17:09 +0000 Subject: 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 --- gtk/summary_dlg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/summary_dlg.c') 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 @@ -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"); -- cgit v1.2.3