dovecot-2.2: lib-mail: Unit test fix to make static analyzer hap...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Mar 6 15:47:07 UTC 2015
details: http://hg.dovecot.org/dovecot-2.2/rev/e4c9a9be1627
changeset: 18305:e4c9a9be1627
user: Timo Sirainen <tss at iki.fi>
date: Fri Mar 06 17:46:26 2015 +0200
description:
lib-mail: Unit test fix to make static analyzer happier
diffstat:
src/lib-mail/test-message-part.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 9c69c197b527 -r e4c9a9be1627 src/lib-mail/test-message-part.c
--- a/src/lib-mail/test-message-part.c Fri Mar 06 16:37:07 2015 +0200
+++ b/src/lib-mail/test-message-part.c Fri Mar 06 17:46:26 2015 +0200
@@ -74,7 +74,7 @@
part = message_part_by_idx(parts, i);
test_assert(part != NULL);
test_assert(part != NULL && message_part_to_idx(part) == i);
- test_assert(part != NULL &&
+ test_assert(part != NULL && prev_part != NULL &&
prev_part->physical_pos < part->physical_pos);
}
test_assert(message_part_by_idx(parts, i) == NULL);
More information about the dovecot-cvs
mailing list