summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-12-31 04:10:13 +0000
committerJim Meyering <jim@meyering.net>1995-12-31 04:10:13 +0000
commita7190a7381236a08fbca3be8ebd33645722a836c (patch)
tree730090d017beedd9b54c6e8f106e9fc69ddd19d4 /src
parentf721ed2bf46c504b7f43731f439cfefd0c229898 (diff)
downloadcoreutils-a7190a7381236a08fbca3be8ebd33645722a836c.tar.xz
(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.
From Andreas Schwab.
Diffstat (limited to 'src')
-rw-r--r--src/csplit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/csplit.c b/src/csplit.c
index f3a879a8e..b89a36925 100644
--- a/src/csplit.c
+++ b/src/csplit.c
@@ -1194,6 +1194,9 @@ extract_regexp (int argnum, boolean ignore, char *str)
p->re_compiled.buffer = (unsigned char *) xmalloc (p->re_compiled.allocated);
p->re_compiled.fastmap = xmalloc (256);
p->re_compiled.translate = 0;
+#if !WITH_REGEX
+ p->re_compiled.syntax_parens = 0;
+#endif
err = re_compile_pattern (p->regexpr, len, &p->re_compiled);
if (err)
{