diff options
Diffstat (limited to '3rdparty/libconfig')
-rw-r--r-- | 3rdparty/libconfig/libconfig.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/3rdparty/libconfig/libconfig.c b/3rdparty/libconfig/libconfig.c index 2e90315c6..4cc272c9f 100644 --- a/3rdparty/libconfig/libconfig.c +++ b/3rdparty/libconfig/libconfig.c @@ -1531,15 +1531,11 @@ config_setting_t *config_setting_add(config_setting_t *parent, if((parent->type == CONFIG_TYPE_ARRAY) || (parent->type == CONFIG_TYPE_LIST)) name = NULL; - if(name) - { + if(name) { if(! __config_validate_name(name)) return(NULL); } - if(config_setting_get_member(parent, name) != NULL) - return(NULL); /* already exists */ - return(config_setting_create(parent, name, type)); } |