From aed00f8ea574486594dd58916da5ef079771b309 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Sat, 1 Jun 2013 01:18:18 +0100 Subject: NULL initialisation, fixes crash on trying to load configs from inaccessible file. --- storage_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'storage_xml.c') diff --git a/storage_xml.c b/storage_xml.c index 1f2d4a51..b6f4a037 100644 --- a/storage_xml.c +++ b/storage_xml.c @@ -173,7 +173,7 @@ static storage_status_t xml_load_real( irc_t *irc, const char *my_nick, const ch struct xml_parsedata xd[1]; char *fn, buf[2048]; int fd, st; - struct xt_parser *xp; + struct xt_parser *xp = NULL; struct xt_node *node; storage_status_t ret = STORAGE_OTHER_ERROR; -- cgit v1.2.3