-- fix an uninitialzed warning

This commit is contained in:
pfelt
2009-09-20 04:19:29 +00:00
parent f9662072e6
commit dca4133ca8
+1 -1
View File
@@ -346,7 +346,7 @@ SpamdReadConfiguration(SpamdConfig *spamd)
for (i=0; i < ASpam.spamd.hostlist->len; i++) {
char *hostitem = g_array_index(ASpam.spamd.hostlist, char*, i);
char *lHost = MemStrdup(hostitem);
char *host;
char *host = NULL;
int port=SPAMD_DEFAULT_PORT, weight=SPAMD_DEFAULT_WEIGHT;
ParseHost(lHost, &host, &port, &weight);
ConnAddressPoolAddHost(&ASpam.spamd.hosts, host, port, weight);