aboutsummaryrefslogtreecommitdiffstats
path: root/dfa.c
diff options
context:
space:
mode:
Diffstat (limited to 'dfa.c')
-rw-r--r--dfa.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/dfa.c b/dfa.c
index 2cfd30b6..69c30804 100644
--- a/dfa.c
+++ b/dfa.c
@@ -996,9 +996,8 @@ find_pred (const char *str)
unsigned int i;
for (i = 0; prednames[i].name; ++i)
if (STREQ (str, prednames[i].name))
- break;
-
- return &prednames[i];
+ return &prednames[i];
+ return NULL;
}
/* Multibyte character handling sub-routine for lex.