From fa09e693be45f06c8d3d309459b3e37620296641 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 26 Oct 2013 13:25:18 +0100 Subject: [PATCH] Zero xml parser userdata before using. --- src/cfg_utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 49fb609ab..9e3ae4761 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -985,6 +985,7 @@ read_xml_config (struct config_file *cfg, const gchar *filename) close (fd); /* Prepare xml parser */ + memset (&ud, 0, sizeof (ud)); ud.cfg = cfg; ud.state = 0; ctx = g_markup_parse_context_new (&xml_parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &ud, NULL); -- 2.39.5