dovecot-2.1: Make static analyzer happier.

dovecot at dovecot.org dovecot at dovecot.org
Mon Apr 23 16:19:11 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/27415a4568b3
changeset: 14466: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