projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfae0f7
)
*** empty log message ***
author
David J. MacKenzie
<djm@gnu.org>
Thu, 26 Nov 1992 04:42:40 +0000
(
04:42
+0000)
committer
David J. MacKenzie
<djm@gnu.org>
Thu, 26 Nov 1992 04:42:40 +0000
(
04:42
+0000)
regex.c
patch
|
blob
|
history
diff --git
a/regex.c
b/regex.c
index
f6720da
..
02455be
100644
(file)
--- a/
regex.c
+++ b/
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