dovecot-2.0: lib-sql: Compiler warning fix.

dovecot at dovecot.org dovecot at dovecot.org
Wed May 5 16:47:14 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/4c71be924a00
changeset: 11266:4c71be924a00
user:      Timo Sirainen <tss at iki.fi>
date:      Wed May 05 16:47:11 2010 +0300
description:
lib-sql: Compiler warning fix.

diffstat:

 src/lib-sql/driver-sqlpool.c |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r 3fc759d5e736 -r 4c71be924a00 src/lib-sql/driver-sqlpool.c
--- a/src/lib-sql/driver-sqlpool.c	Wed May 05 16:46:12 2010 +0300
+++ b/src/lib-sql/driver-sqlpool.c	Wed May 05 16:47:11 2010 +0300
@@ -214,6 +214,8 @@
 	struct sqlpool_host *hosts, *min = NULL;
 	unsigned int i, count;
 
+	*host_idx_r = -1U;
+
 	hosts = array_get_modifiable(&db->hosts, &count);
 	for (i = 0; i < count; i++) {
 		if (min == NULL ||


More information about the dovecot-cvs mailing list