aboutsummaryrefslogtreecommitdiff
path: root/posix/regcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/regcomp.c')
-rw-r--r--posix/regcomp.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 04d67a1..149814c 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -692,12 +692,8 @@ re_compile_internal (preg, pattern, length, syntax)
return err;
}
- if (syntax & RE_ICASE)
- err = re_string_construct_toupper (&regexp, pattern, length,
- preg->translate);
- else
- err = re_string_construct (&regexp, pattern, length, preg->translate);
-
+ err = re_string_construct (&regexp, pattern, length, preg->translate,
+ syntax & RE_ICASE);
if (BE (err != REG_NOERROR, 0))
{
re_free (dfa);