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 4b461fed..96497865 100644
--- a/dfa.c
+++ b/dfa.c
@@ -1008,9 +1008,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.