]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Fixed boolean expression in dsync_mailbox_import_deinit().
authorStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 3 Dec 2016 19:48:30 +0000 (20:48 +0100)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Sat, 3 Dec 2016 19:48:30 +0000 (20:48 +0100)
Found with Clang -Wstrict-bool.

src/doveadm/dsync/dsync-mailbox-import.c

index 10cc40586098a23b3f7f24b6ca0fe9c11cb80b37..da296122ae1f695fcd7eef0d5f0d60cac5854af2 100644 (file)
@@ -2856,7 +2856,7 @@ int dsync_mailbox_import_deinit(struct dsync_mailbox_importer **_importer,
                array_free(&importer->mail_requests);
 
        *last_common_uid_r = importer->last_common_uid;
-       if (!*changes_during_sync_r) {
+       if (*changes_during_sync_r == NULL) {
                *last_common_modseq_r = importer->remote_highest_modseq;
                *last_common_pvt_modseq_r = importer->remote_highest_pvt_modseq;
        } else {