*** empty log message ***
authorDavid J. MacKenzie <djm@gnu.org>
Thu, 26 Nov 1992 04:42:40 +0000 (04:42 +0000)
committerDavid J. MacKenzie <djm@gnu.org>
Thu, 26 Nov 1992 04:42:40 +0000 (04:42 +0000)
regex.c

diff --git a/regex.c b/regex.c
index f6720da20ae4e7ad89c76ca0608271bc4a9aa8eb..02455be179cc32a05391ce392980706751abdb34 100644 (file)
--- a/regex.c
+++ b/regex.c
@@ -4714,10 +4714,12 @@ regcomp (preg, pattern, cflags)
 {
   reg_errcode_t ret;
   unsigned syntax
-    = cflags & REG_EXTENDED ? RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC;
+    = (cflags & REG_EXTENDED) ?
+      RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC;
 
   /* regex_compile will allocate the space for the compiled pattern.  */
   preg->buffer = 0;
+  preg->allocated = 0;
   
   /* Don't bother to use a fastmap when searching.  This simplifies the
      REG_NEWLINE case: if we used a fastmap, we'd have to put all the