Browse Source

Fix definition of the rcl_init function

tags/1.1.0
Vsevolod Stakhov 8 years ago
parent
commit
0885ba11d9
2 changed files with 3 additions and 3 deletions
  1. 2
    2
      src/libserver/cfg_rcl.c
  2. 1
    1
      src/libserver/cfg_rcl.h

+ 2
- 2
src/libserver/cfg_rcl.c View File

@@ -1292,7 +1292,7 @@ rspamd_rcl_add_default_handler (struct rspamd_rcl_section *section,
}

struct rspamd_rcl_section *
rspamd_rcl_config_init (void)
rspamd_rcl_config_init (struct rspamd_config *cfg)
{
struct rspamd_rcl_section *new = NULL, *sub, *ssub, *sssub;

@@ -2828,7 +2828,7 @@ rspamd_config_read (struct rspamd_config *cfg, const gchar *filename,
cfg->rcl_obj = ucl_parser_get_object (parser);
ucl_parser_free (parser);

top = rspamd_rcl_config_init ();
top = rspamd_rcl_config_init (cfg);
rspamd_rcl_set_lua_globals (cfg, cfg->lua_state, vars);
err = NULL;


+ 1
- 1
src/libserver/cfg_rcl.h View File

@@ -137,7 +137,7 @@ struct rspamd_rcl_section *rspamd_rcl_add_section_doc (
* Init common sections known to rspamd
* @return top section
*/
struct rspamd_rcl_section * rspamd_rcl_config_init (void);
struct rspamd_rcl_section * rspamd_rcl_config_init (struct rspamd_config *cfg);

/**
* Get a section specified by path, it understand paths separated by '/' character

Loading…
Cancel
Save