]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-sql: Compiler warning fix.
authorTimo Sirainen <tss@iki.fi>
Wed, 5 May 2010 13:47:11 +0000 (16:47 +0300)
committerTimo Sirainen <tss@iki.fi>
Wed, 5 May 2010 13:47:11 +0000 (16:47 +0300)
--HG--
branch : HEAD

src/lib-sql/driver-sqlpool.c

index 0e123201d37f2b7ae2dc6064e487a53190f37174..14285de37515b8872e0155b981a0892aa3b6ab26 100644 (file)
@@ -214,6 +214,8 @@ sqlpool_find_host_with_least_connections(struct sqlpool_db *db,
        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 ||