aboutsummaryrefslogtreecommitdiffstats
path: root/dfilter.c
diff options
context:
space:
mode:
authorGilbert Ramirez <gram@alumni.rice.edu>1999-10-04 18:09:05 +0000
committerGilbert Ramirez <gram@alumni.rice.edu>1999-10-04 18:09:05 +0000
commitb73cea0fcae53e408835e579b2bab0c7a8e6aa4b (patch)
tree8feac2b47a06aabbabced59a612e94412f97d5ac /dfilter.c
parent29cbbd3fc1a44c6e3ae7429a8c0145b474ee1a01 (diff)
Removed dummy protocol and removed bug which prevented the first
registered protocol's name from being used in a display filter. svn path=/trunk/; revision=766
Diffstat (limited to 'dfilter.c')
-rw-r--r--dfilter.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dfilter.c b/dfilter.c
index d65143a165..8c196f36c2 100644
--- a/dfilter.c
+++ b/dfilter.c
@@ -1,7 +1,7 @@
/* dfilter.c
* Routines for display filters
*
- * $Id: dfilter.c,v 1.21 1999/09/29 22:11:51 gram Exp $
+ * $Id: dfilter.c,v 1.22 1999/10/04 18:09:05 gram Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -313,7 +313,7 @@ int dfilter_lookup_token(char *abbrev)
value = GPOINTER_TO_INT(g_tree_lookup(dfilter_tokens, abbrev));
if (value < DFILTER_LEX_ABBREV_OFFSET) {
- return 0;
+ return -1;
}
return value - DFILTER_LEX_ABBREV_OFFSET;
}