# HG changeset patch # User Jim Meyering # Date 738046257 0 # Node ID ab63b5d6b1aac51700dd7a9930392499b4c370f3 # Parent 4f1d214c5ecb922e4580d2c4c6ccea4f0d3e6d32 GNU text utilities diff --git a/lib/regex.c b/lib/regex.c --- a/lib/regex.c +++ b/lib/regex.c @@ -4784,6 +4784,7 @@ /* 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