summaryrefslogtreecommitdiff
path: root/src/src/transports/tf_maildir.c
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2020-01-11 20:48:38 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2020-01-11 20:48:38 +0000
commit3d2e82c5729148f3f88fbb7de7e6dcbc20d0c867 (patch)
treedd1576cfade800c552f55d42a56a002ed5a0999b /src/src/transports/tf_maildir.c
parent163144aab02a47427340d0ecc75e2abde675f4c9 (diff)
downloadexim4-3d2e82c5729148f3f88fbb7de7e6dcbc20d0c867.tar.gz
tidying: CCSS macro
Diffstat (limited to 'src/src/transports/tf_maildir.c')
-rw-r--r--src/src/transports/tf_maildir.c6
1 files changed, 2 insertions, 4 deletions
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,