From dca4133ca899ef6ba789ac73e04bc24a77f64d53 Mon Sep 17 00:00:00 2001 From: pfelt Date: Sun, 20 Sep 2009 04:19:29 +0000 Subject: [PATCH] -- fix an uninitialzed warning --- src/agents/antispam/spamd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/antispam/spamd.c b/src/agents/antispam/spamd.c index a76951f..0f7c46b 100644 --- a/src/agents/antispam/spamd.c +++ b/src/agents/antispam/spamd.c @@ -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);