summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1993-05-22 04:50:57 +0000
committerJim Meyering <jim@meyering.net>1993-05-22 04:50:57 +0000
commit295b7d622d9b5f20d496582ac17f90110a3da22f (patch)
tree795f7be17e2ece4e602fb81954a118704f47d68a
parentc3a396a6863bdce8e2b5e89706e62e07a188cc0e (diff)
downloadgnulib-295b7d622d9b5f20d496582ac17f90110a3da22f.tar.gz
GNU text utilitiesTEXTUTILS-1_5_2
-rw-r--r--lib/regex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/regex.c b/lib/regex.c
index 5bd4cf654d..e8b588207d 100644
--- a/lib/regex.c
+++ b/lib/regex.c
@@ -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