From 477cb50c4c5b9e13e745a8e1413d532e27383d66 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Thu, 19 Dec 2013 23:09:40 +0200 Subject: Bug fix in regex. --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'regexec.c') diff --git a/regexec.c b/regexec.c index a39e1f58..77795f69 100644 --- a/regexec.c +++ b/regexec.c @@ -664,7 +664,7 @@ re_search_internal (preg, string, length, start, range, stop, nmatch, pmatch, nmatch -= extra_nmatch; /* Check if the DFA haven't been compiled. */ - if (BE (preg->used == 0 || dfa->init_state == NULL + if (BE (preg->used == 0 || dfa == NULL || dfa->init_state == NULL || dfa->init_state_word == NULL || dfa->init_state_nl == NULL || dfa->init_state_begbuf == NULL, 0)) return REG_NOMATCH; -- cgit v1.2.3