aboutsummaryrefslogtreecommitdiffstats
path: root/dfilter-grammar.y
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-09-29 22:11:51 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-09-29 22:11:51 +0000
commit7b732a9f80f3ff44071520c9ff1101a012fc7b28 (patch)
tree781dfc9f0b87ca0e6d2bafdf63f643f49b87cde7 /dfilter-grammar.y
parent901754eb9b6dd43fd8f0aff5ceca65ef8dad2aeb (diff)
Fixed assert error reported by Dewi Morgan <dewim@sco.com>.
After some bad dfilter parses, the top-level dfilter tree (global_df->dftree) would erroneously be set to the last good dfilter_node that was parsed. Later, the non-NULLness of the dftree made us clear it.. really confusing GTK internals. After _that_, new GNodes created via g_node_new() would all have the same address! svn path=/trunk/; revision=735
Diffstat (limited to 'dfilter-grammar.y')
-rw-r--r--dfilter-grammar.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/dfilter-grammar.y b/dfilter-grammar.y
index 97b677d128..f0f4641937 100644
--- a/dfilter-grammar.y
+++ b/dfilter-grammar.y
@@ -3,7 +3,7 @@
/* dfilter-grammar.y
* Parser for display filters
*
- * $Id: dfilter-grammar.y,v 1.18 1999/09/15 06:13:19 gram Exp $
+ * $Id: dfilter-grammar.y,v 1.19 1999/09/29 22:11:50 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -174,6 +174,7 @@ expression: '(' expression ')' { $$ = $2; }
| TOK_NOT expression { $$ = dfilter_mknode_unary(TOK_NOT, $2); }
| relation { $$ = $1; }
| variable_name { $$ = $1; }
+ | expression error { YYABORT; }
;
relation: numeric_variable numeric_relation numeric_value