diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-19 20:29:58 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2012-09-19 20:29:58 +0400 |
commit | 91d183b8f4719ecc6b339cc3e8d9239bf7594e30 (patch) | |
tree | e4a548ed5570d425d87ac0aa684900179eaabe4e /src/cfg_xml.c | |
parent | 1bdd1f05773d1f16f4fc271e09a691a1750e0ed5 (diff) | |
download | rspamd-91d183b8f4719ecc6b339cc3e8d9239bf7594e30.tar.gz rspamd-91d183b8f4719ecc6b339cc3e8d9239bf7594e30.zip |
Avoid global variables in map logic.
* Add support of simple maps like '/path/to/file' as it seems to be more comfortable than 'file:///...'
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r-- | src/cfg_xml.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c index dce02efbb..1f0c0aa78 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -1799,7 +1799,7 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam else if (g_ascii_strcasecmp (element_name, "view") == 0) { ud->state = XML_READ_VIEW; /* Create object */ - ud->section_pointer = init_view (ud->cfg->cfg_pool); + ud->section_pointer = init_view (ud->cfg, ud->cfg->cfg_pool); } #if GLIB_MINOR_VERSION >= 18 else if (subparsers != NULL && (subparser = g_hash_table_lookup (subparsers, element_name)) != NULL) { |