# HG changeset patch # User Jim Blandy # Date 737257642 0 # Node ID fe2e35bd06251cf621ce7979c8af894d94386310 # Parent 51c85f74d16dc57a7c31e4b7c90ce9c778715dbc *** empty log message *** diff --git a/regex.c b/regex.c --- a/regex.c +++ b/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