X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/163144aab02a47427340d0ecc75e2abde675f4c9..3d2e82c5729148f3f88fbb7de7e6dcbc20d0c867:/src/src/filter.c diff --git a/src/src/filter.c b/src/src/filter.c index 3da616700..98b6bc3e8 100644 --- a/src/src/filter.c +++ b/src/src/filter.c @@ -1595,11 +1595,9 @@ switch (c->type) debug_printf_indent(" Pattern = %s\n", exp[1]); } - re = pcre_compile(CS exp[1], + if (!(re = pcre_compile(CS exp[1], PCRE_COPT | ((c->type == cond_matches)? PCRE_CASELESS : 0), - (const char **)®comp_error, ®comp_error_offset, NULL); - - if (re == NULL) + CCSS ®comp_error, ®comp_error_offset, NULL))) { *error_pointer = string_sprintf("error while compiling " "regular expression \"%s\": %s at offset %d",