From fcba8a2161a392369db99ab9a516a24470c54796 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 23 Jun 2013 16:35:42 -0300 Subject: Official Item Group/Package/Chain http://hercules.ws/board/topic/1244-official-item-grouppackagechain/ Also Further implemented itemdb.c/storage.c interfaces, and a minor update to db2sql plugin. Signed-off-by: shennetsind --- 3rdparty/libconfig/libconfig.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to '3rdparty') 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)); } -- cgit v1.2.3-60-g2f50