From 295b7d622d9b5f20d496582ac17f90110a3da22f Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sat, 22 May 1993 04:50:57 +0000 Subject: [PATCH] GNU text utilities --- lib/regex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/regex.c b/lib/regex.c index 5bd4cf654..e8b588207 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 -- 2.11.0