changeset 1642:340feb030df1

*** empty log message ***
author David J. MacKenzie <djm@gnu.org>
date Thu, 26 Nov 1992 04:42:40 +0000
parents 47ae0840b2b9
children 150011471634
files src/regex.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/regex.c	Tue Nov 24 14:17:32 1992 +0000
+++ b/src/regex.c	Thu Nov 26 04:42:40 1992 +0000
@@ -4714,10 +4714,12 @@
 {
   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