diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rspamd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rspamd.c b/src/rspamd.c index 6fbb64fdf..12f0cae2c 100644 --- a/src/rspamd.c +++ b/src/rspamd.c @@ -148,6 +148,11 @@ rspamd_parse_var (const gchar *option_name, v = g_strdup (t + 1); *t = '\0'; + if (ucl_vars == NULL) { + ucl_vars = g_hash_table_new_full (rspamd_strcase_hash, + rspamd_strcase_equal, g_free, g_free); + } + g_hash_table_insert (ucl_vars, k, v); } else { |