From: Vsevolod Stakhov Date: Tue, 24 Apr 2018 16:11:06 +0000 (+0100) Subject: [Minor] Fix implicit arrays case X-Git-Tag: 1.7.4~43 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c28687631ba49d7339ca728c4255194911ecca98;p=rspamd.git [Minor] Fix implicit arrays case --- diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index 1a2f473e7..3856c294b 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -1797,7 +1797,10 @@ rspamd_config_radix_from_ucl (struct rspamd_config *cfg, } else { /* Just a list */ - *target = rspamd_map_helper_new_radix (NULL); + if (!*target) { + *target = rspamd_map_helper_new_radix (NULL); + } + rspamd_map_helper_insert_radix_resolve (*target, str, ""); } break;