From 2a75bb4ae0a1e7547e4396fe67825133606cf9d9 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 12 Apr 2006 07:14:53 +0000 Subject: [PATCH] (extract_regexp): Set re_syntax_options to a value that is compatible with what POSIX requires. --- src/csplit.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/csplit.c b/src/csplit.c index 825c9c1960..4544a3ed10 100644 --- a/src/csplit.c +++ b/src/csplit.c @@ -1121,6 +1121,7 @@ extract_regexp (int argnum, bool ignore, char const *str) p->re_compiled.allocated = 0; p->re_compiled.fastmap = p->fastmap; p->re_compiled.translate = NULL; + re_syntax_options = RE_SYNTAX_POSIX_BASIC & ~RE_CONTEXT_INVALID_DUP; err = re_compile_pattern (str + 1, len, &p->re_compiled); if (err) { -- 2.47.2