aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dfilter
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-06-16 07:33:46 +0000
committerGuy Harris <guy@alum.mit.edu>2004-06-16 07:33:46 +0000
commit7e128ddeb32c7b292e20765673adda0154bbbf36 (patch)
tree1a9208528bd9e51710bfb3d947df5aab506d2c68 /epan/dfilter
parent24861362a0b0c5300626644ef07a85c35fac0870 (diff)
Note that the reason why there's parser state that stays around after
the parse finishes (forcing us to feed the parser an end-of-input even after an error) is that we don't create a new parser object when we start a new parse and don't destroy it when the parse finishes. svn path=/trunk/; revision=11156
Diffstat (limited to 'epan/dfilter')
-rw-r--r--epan/dfilter/dfilter.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dfilter/dfilter.c b/epan/dfilter/dfilter.c
index f1c30a96d2..35efd9a8fb 100644
--- a/epan/dfilter/dfilter.c
+++ b/epan/dfilter/dfilter.c
@@ -1,5 +1,5 @@
/*
- * $Id: dfilter.c,v 1.17 2004/06/15 10:38:14 guy Exp $
+ * $Id: dfilter.c,v 1.18 2004/06/16 07:33:46 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -241,7 +241,9 @@ dfilter_compile(const gchar *text, dfilter_t **dfp)
/* Tell the parser that we have reached the end of input; that
* way, it'll reset its state for the next compile. (We want
* to do that even if we got a syntax error, to make sure the
- * parser state is cleaned up.) */
+ * parser state is cleaned up; we don't create a new parser
+ * object when we start a new parse, and don't destroy it when
+ * the parse finishes.) */
Dfilter(ParserObj, 0, NULL, dfw);
/* One last check for syntax error (after EOF) */