Skip to content

Commit

Permalink
imapsieve: Fixed check for the presence of causes in a mailbox rule.
Browse files Browse the repository at this point in the history
Problem found by GCC 7.
  • Loading branch information
stephanbosch committed Oct 5, 2017
1 parent 370b973 commit 15f9fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/imapsieve/imap-sieve-storage.c
Expand Up @@ -1013,7 +1013,7 @@ imap_sieve_mailbox_rule_match_cause
{
const char *const *cp;

if (rule->causes == NULL || *rule->causes == '\0')
if (rule->causes == NULL || *rule->causes == NULL)
return TRUE;

for (cp = rule->causes; *cp != NULL; cp++) {
Expand Down

0 comments on commit 15f9fd1

Please sign in to comment.