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 | d9088577ea4bfdc1339201a96cf7104c551f0758 (patch) | |
| tree | 58e0282551774e9f7adc2d7e4f38d5575330d959 /src | |
| parent | 18ec5b052590980e7cd58a28f834252723634c36 (diff) | |
| download | emacs-d9088577ea4bfdc1339201a96cf7104c551f0758.tar.gz | |
*** empty log message ***
Diffstat (limited to 'src')
| -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 |
