aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid J. MacKenzie1992-11-26 04:42:40 +0000
committerDavid J. MacKenzie1992-11-26 04:42:40 +0000
commitd9088577ea4bfdc1339201a96cf7104c551f0758 (patch)
tree58e0282551774e9f7adc2d7e4f38d5575330d959 /src
parent18ec5b052590980e7cd58a28f834252723634c36 (diff)
downloademacs-d9088577ea4bfdc1339201a96cf7104c551f0758.tar.gz
emacs-d9088577ea4bfdc1339201a96cf7104c551f0758.zip
*** empty log message ***
Diffstat (limited to 'src')
-rw-r--r--src/regex.c4
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)
4714{ 4714{
4715 reg_errcode_t ret; 4715 reg_errcode_t ret;
4716 unsigned syntax 4716 unsigned syntax
4717 = cflags & REG_EXTENDED ? RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC; 4717 = (cflags & REG_EXTENDED) ?
4718 RE_SYNTAX_POSIX_EXTENDED : RE_SYNTAX_POSIX_BASIC;
4718 4719
4719 /* regex_compile will allocate the space for the compiled pattern. */ 4720 /* regex_compile will allocate the space for the compiled pattern. */
4720 preg->buffer = 0; 4721 preg->buffer = 0;
4722 preg->allocated = 0;
4721 4723
4722 /* Don't bother to use a fastmap when searching. This simplifies the 4724 /* Don't bother to use a fastmap when searching. This simplifies the
4723 REG_NEWLINE case: if we used a fastmap, we'd have to put all the 4725 REG_NEWLINE case: if we used a fastmap, we'd have to put all the