From: helly Date: Wed, 12 May 2004 09:46:18 +0000 (+0000) Subject: Fix possible SEGV X-Git-Tag: 0.13.6~709 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6e01668c1fcc9c33e66de243398cdc39084912df;p=re2c Fix possible SEGV --- 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) { }