Fix problem reported in #7

This commit is contained in:
Ron Pedde 2006-05-19 05:10:08 +00:00
parent e96ee72b8b
commit 04ed0711a4

View File

@ -924,15 +924,12 @@ int conf_set_string(char *section, char *key, char *value, int verify) {
return CONF_E_SUCCESS; /* ?? deleting an already deleted item */
}
if(ll_del_item(section_ll,key) == LL_E_SUCCESS) {
/* don't care about item... might already be gone! */
ll_del_item(section_ll,key);
_conf_unlock();
return CONF_E_SUCCESS;
}
_conf_unlock();
return CONF_E_UNKNOWN;
}
pitem = _conf_fetch_item(conf_main,section,key);
if(!pitem) {
/* fetch the section and add it to that list */