GNU text utilities TEXTUTILS-1_5_2
authorJim Meyering <jim@meyering.net>
Sat, 22 May 1993 04:50:57 +0000 (04:50 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 22 May 1993 04:50:57 +0000 (04:50 +0000)
lib/regex.c

index 5bd4cf6..e8b5882 100644 (file)
@@ -4784,6 +4784,7 @@ regcomp (preg, pattern, cflags)
   /* regex_compile will allocate the space for the compiled pattern.  */
   preg->buffer = 0;
   preg->allocated = 0;
+  preg->used = 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