aboutsummaryrefslogtreecommitdiffstats
path: root/dfilter.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-08-12 15:10:48 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-08-12 15:10:48 +0000
commit336b94f50691d1bb759605a545f6b3bda69b3203 (patch)
treec98df9500f1a195d50eb16c18ab75c4ee25d7c60 /dfilter.c
parent2fd75551101a2f729f285efe33d850421bd5da47 (diff)
Fixed two bugs in display filter parsing.
1. Some IP addresses (like 0.0.0.0) would be interpreted as byte ranges. 2. Parens were being ignored. Thanks to Guy for pointing these out to me. svn path=/trunk/; revision=477
Diffstat (limited to 'dfilter.c')
-rw-r--r--dfilter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dfilter.c b/dfilter.c
index 41587df426..4e53b8f6e3 100644
--- a/dfilter.c
+++ b/dfilter.c
@@ -1,7 +1,7 @@
/* dfilter.c
* Routines for display filters
*
- * $Id: dfilter.c,v 1.6 1999/08/03 15:04:25 gram Exp $
+ * $Id: dfilter.c,v 1.7 1999/08/12 15:10:48 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -151,8 +151,8 @@ static void
clear_byte_array(gpointer data, gpointer user_data)
{
GByteArray *barray = data;
-
- g_byte_array_free(barray, TRUE);
+ if (barray)
+ g_byte_array_free(barray, TRUE);
}
void