aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_utils.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-23 17:30:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-23 17:30:48 +0100
commitabb2091e00e5d07a9a2393e4ef1b281efee3f47a (patch)
tree974fef01ec2a1eff2b607374e16a88b47b687361 /src/cfg_utils.c
parent7ecc32babdc9ea9db7f051923d95715fbcc3a30f (diff)
downloadrspamd-abb2091e00e5d07a9a2393e4ef1b281efee3f47a.tar.gz
rspamd-abb2091e00e5d07a9a2393e4ef1b281efee3f47a.zip
Start to eliminate xml configuration.
Diffstat (limited to 'src/cfg_utils.c')
-rw-r--r--src/cfg_utils.c9
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;