From 61b02a2b161deb19be4de8e627ebe0f4ffd9a238 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Fri, 29 Nov 2013 10:43:20 -0200 Subject: Follow up 3a269dca93c421141631b4c87b2f366b6c130a42 Extended to the fix to aggregated as well, as in val: [ y,x ]/{y,x}/(x,y,...) Signed-off-by: shennetsind --- src/common/conf.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/common/conf.c b/src/common/conf.c index a6329d70e..813069ac4 100644 --- a/src/common/conf.c +++ b/src/common/conf.c @@ -83,6 +83,9 @@ void config_setting_copy_aggregate(config_setting_t *parent, const config_settin config_setting_t *newAgg; int i, n; + if( config_setting_get_member(parent, config_setting_name(src)) != NULL ) + return; + newAgg = config_setting_add(parent, config_setting_name(src), config_setting_type(src)); if (newAgg == NULL) -- cgit v1.2.3-60-g2f50