summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2013-12-19 23:09:40 +0200
committerArnold D. Robbins <arnold@skeeve.com>2013-12-19 23:09:40 +0200
commit477cb50c4c5b9e13e745a8e1413d532e27383d66 (patch)
tree8c02e96fe445d30888a163c1bd09bb3ced6e15e4 /regexec.c
parent0fe10e90378a965649ff81a2ac6b4bb168ea96c1 (diff)
downloadgawk-477cb50c4c5b9e13e745a8e1413d532e27383d66.tar.gz
Bug fix in regex.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c2
1 files changed, 1 insertions, 1 deletions
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;