diff options
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r-- | src/cfg_utils.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 8a49237ac..49fb609ab 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -986,18 +986,11 @@ read_xml_config (struct config_file *cfg, const gchar *filename) /* Prepare xml parser */ ud.cfg = cfg; - ud.state = XML_READ_START; - ud.if_stack = g_queue_new (); - + ud.state = 0; ctx = g_markup_parse_context_new (&xml_parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &ud, NULL); init_kvstorage_config (); res = g_markup_parse_context_parse (ctx, data, st.st_size, &err); - if (g_queue_get_length (ud.if_stack) != 0) { - msg_err ("unexpected nesting for if arguments"); - res = FALSE; - } - munmap (data, st.st_size); return res; |