diff options
author | David J. MacKenzie <djm@gnu.org> | 1992-11-26 04:42:40 +0000 |
---|---|---|
committer | David J. MacKenzie <djm@gnu.org> | 1992-11-26 04:42:40 +0000 |
commit | 978b71c3afe07fa6cf352c9f2b0a351968064505 (patch) | |
tree | 71aa4fdcf0f9c90cda0a12a357a5ce91db802259 /src/regex.c | |
parent | 8f8ad417fe621e840759d2870508d850a868d5b3 (diff) | |
download | emacs-978b71c3afe07fa6cf352c9f2b0a351968064505.tar.gz |
*** empty log message ***
Diffstat (limited to 'src/regex.c')
-rw-r--r-- | src/regex.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c index f6720da20ae..02455be179c 100644 --- a/src/regex.c +++ b/src/regex.c @@ -4714,10 +4714,12 @@ regcomp (preg, pattern, cflags) { 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 |