X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fsrc%2Ftransports%2Ftf_maildir.c;h=4d5c0c1a9a1960c0aa42e0c2c34f7cb5b6edd689;hb=3d2e82c5729148f3f88fbb7de7e6dcbc20d0c867;hp=611895e064a72aac70be4e4f491fe36e98bb527f;hpb=163144aab02a47427340d0ecc75e2abde675f4c9;p=exim.git diff --git a/src/src/transports/tf_maildir.c b/src/src/transports/tf_maildir.c index 611895e06..4d5c0c1a9 100644 --- a/src/src/transports/tf_maildir.c +++ b/src/src/transports/tf_maildir.c @@ -147,10 +147,8 @@ if (maildirfolder_create_regex != NULL) DEBUG(D_transport) debug_printf("checking for maildirfolder requirement\n"); - regex = pcre_compile(CS maildirfolder_create_regex, PCRE_COPT, - (const char **)&error, &offset, NULL); - - if (regex == NULL) + if (!(regex = pcre_compile(CS maildirfolder_create_regex, PCRE_COPT, + CCSS &error, &offset, NULL))) { addr->message = string_sprintf("appendfile: regular expression " "error: %s at offset %d while compiling %s", error, offset,