]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
dsync: Make static analyzer happier (hopefully)
authorTimo Sirainen <tss@iki.fi>
Wed, 7 May 2014 20:32:28 +0000 (23:32 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 7 May 2014 20:32:28 +0000 (23:32 +0300)
src/doveadm/dsync/dsync-mailbox-import.c

index d3fca249f73f4a1a78a6e8efb506e7c81f31306e..a9e4a01fc521a0e1b429094cd875789ed8d023dd 100644 (file)
@@ -327,6 +327,9 @@ dsync_attributes_cmp_values(const struct dsync_mailbox_attribute *attr1,
        struct istream *input1, *input2;
        int ret;
 
+       i_assert(attr1->value_stream != NULL || attr1->value != NULL);
+       i_assert(attr2->value_stream != NULL || attr2->value != NULL);
+
        if (attr1->value != NULL && attr2->value != NULL) {
                *cmp_r = strcmp(attr1->value, attr2->value);
                return 0;