dovecot-2.0: director-test: Make static analyzer happy.
dovecot at dovecot.org
dovecot at dovecot.org
Fri Jul 2 22:58:32 EEST 2010
details: http://hg.dovecot.org/dovecot-2.0/rev/11472e64ea7d
changeset: 11717:11472e64ea7d
user: Timo Sirainen <tss at iki.fi>
date: Fri Jul 02 20:58:29 2010 +0100
description:
director-test: Make static analyzer happy.
diffstat:
src/director/director-test.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (15 lines):
diff -r 3d737e1ed65e -r 11472e64ea7d src/director/director-test.c
--- a/src/director/director-test.c Fri Jul 02 20:10:07 2010 +0100
+++ b/src/director/director-test.c Fri Jul 02 20:58:29 2010 +0100
@@ -519,8 +519,10 @@
if (count != 0) {
i = 0; count = rand() % count;
- for (conn = director_connections; i < count; conn = conn->next)
+ for (conn = director_connections; i < count; conn = conn->next) {
+ i_assert(conn != NULL);
i++;
+ }
director_connection_destroy(&conn);
}
}
More information about the dovecot-cvs
mailing list