]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-index: mail-index-transaction-export: Fixed handling of transaction_flag_updates_...
authorStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 1 May 2017 20:23:36 +0000 (22:23 +0200)
committerStephan Bosch <stephan.bosch@dovecot.fi>
Mon, 1 May 2017 20:24:52 +0000 (22:24 +0200)
Found using Clang -Wstrict-bool.

src/lib-index/mail-index-transaction-export.c

index 5e519a1b9bcb18cf6156b3dd87bfd87ce0c1025a..479ead544f0f7070f16ec9fbf85818e7deb4def0 100644 (file)
@@ -592,7 +592,7 @@ uint64_t mail_index_transaction_get_highest_modseq(struct mail_index_transaction
                new_highest_modseq++;
        }
        if (array_is_created(&t->updates) &&
-           transaction_flag_updates_have_non_internal(t) > 0)
+           transaction_flag_updates_have_non_internal(t))
                new_highest_modseq++;
        if (array_is_created(&t->keyword_updates)) {
                new_highest_modseq +=