dovecot-2.2: dsync: Make static analyzer happier (hopefully)
dovecot at dovecot.org
dovecot at dovecot.org
Wed May 7 20:33:01 UTC 2014
details: http://hg.dovecot.org/dovecot-2.2/rev/24d27f7da7b2
changeset: 17345:24d27f7da7b2
user: Timo Sirainen <tss at iki.fi>
date: Wed May 07 23:32:28 2014 +0300
description:
dsync: Make static analyzer happier (hopefully)
diffstat:
src/doveadm/dsync/dsync-mailbox-import.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r fc4a19b17fb3 -r 24d27f7da7b2 src/doveadm/dsync/dsync-mailbox-import.c
--- a/src/doveadm/dsync/dsync-mailbox-import.c Wed May 07 23:26:57 2014 +0300
+++ b/src/doveadm/dsync/dsync-mailbox-import.c Wed May 07 23:32:28 2014 +0300
@@ -327,6 +327,9 @@
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;
More information about the dovecot-cvs
mailing list