# HG changeset patch # User David J. MacKenzie # Date 722752960 0 # Node ID 340feb030df1c4c2cf61b4558b8376f26c51ac23 # Parent 47ae0840b2b93e651cf7c64e0354cedd99eba70e *** empty log message *** diff -r 47ae0840b2b9 -r 340feb030df1 src/regex.c --- a/src/regex.c Tue Nov 24 14:17:32 1992 +0000 +++ b/src/regex.c Thu Nov 26 04:42:40 1992 +0000 @@ -4714,10 +4714,12 @@ { reg_errcode_t ret; unsigned syntax - = cflags & REG_EXTENDED ? RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC; + = (cflags & REG_EXTENDED) ? + RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC; /* regex_compile will allocate the space for the compiled pattern. */ preg->buffer = 0; + preg->allocated = 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