From 6e01668c1fcc9c33e66de243398cdc39084912df Mon Sep 17 00:00:00 2001 From: helly Date: Wed, 12 May 2004 09:46:18 +0000 Subject: [PATCH] Fix possible SEGV --- dfa.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dfa.h b/dfa.h index 6bd78248..9761e4e4 100644 --- a/dfa.h +++ b/dfa.h @@ -145,7 +145,7 @@ inline bool Action::isMatch() const { return false; } inline bool Action::readAhead() const - { return !isMatch() || !state->next->action->isRule(); } + { return !isMatch() || (state && state->next && state->next->action && !state->next->action->isRule()); } inline Match::Match(State *s) : Action(s) { } -- 2.40.0