Check command-line options for conflicting matchers and actions.

This commit is contained in:
2023-04-19 21:55:25 +02:00
parent 3040f9c363
commit c19253d080
8 changed files with 241 additions and 152 deletions

View File

@@ -77,7 +77,7 @@ regex_init (void)
if (config.ignorecase)
flag1 = REG_ICASE;
if (config.extended)
if (config.regextype == REGEX_EXTENDED)
flag2 = REG_EXTENDED;
config.posix_pattern = (regex_t *) xmalloc (sizeof (regex_t));