dovecot-2.2: Make static analyzer happier.
dovecot at dovecot.org
dovecot at dovecot.org
Sun May 20 03:26:34 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/27415a4568b3
changeset: 14502:27415a4568b3
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 23 16:18:36 2012 +0300
description:
Make static analyzer happier.
diffstat:
src/lib/test-strfuncs.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (16 lines):
diff -r 972b296db20a -r 27415a4568b3 src/lib/test-strfuncs.c
--- a/src/lib/test-strfuncs.c Mon Apr 23 14:50:30 2012 +0300
+++ b/src/lib/test-strfuncs.c Mon Apr 23 16:18:36 2012 +0300
@@ -37,10 +37,8 @@
s1 = t_strsplit_tab(str);
s2 = t_strsplit(str, "\t");
- for (i = 0; s1[i] != NULL; i++) {
- test_assert(s2[i] != NULL);
- test_assert(strcmp(s1[i], s2[i]) == 0);
- }
+ for (i = 0; s1[i] != NULL; i++)
+ test_assert(null_strcmp(s1[i], s2[i]) == 0);
test_assert(s2[i] == NULL);
} T_END;
}
More information about the dovecot-cvs
mailing list