aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2013-06-01 01:18:18 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2013-06-01 01:18:18 +0100
commitaed00f8ea574486594dd58916da5ef079771b309 (patch)
treec47fe50e2a16a5a0d184eff33c3edcb5ff19868f
parentf2d8aa21d47f2c5158df7dc51abce19611e9a81e (diff)
NULL initialisation, fixes crash on trying to load configs from inaccessible
file.
-rw-r--r--storage_xml.c2
1 files changed, 1 insertions, 1 deletions
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;