about summary refs log tree commit diff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 14147804f4..b4f273a6ce 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -468,6 +468,7 @@ regcomp (preg, pattern, cflags)
   preg->buffer = NULL;
   preg->allocated = 0;
   preg->used = 0;
+  preg->can_be_null = 0;
 
   /* Try to allocate space for the fastmap.  */
   preg->fastmap = re_malloc (char, SBC_MAX);