Fixed remove config checking if it was already removed

pull/93/head
parent 5701430277
commit 860276f2ee

@ -602,12 +602,12 @@ int yon_config_remove_by_key(char *key){
check_config{ check_config{
dictionary *dict = yon_dictionary_get((dictionary**)&__yon__config__strings,key); dictionary *dict = yon_dictionary_get((dictionary**)&__yon__config__strings,key);
if (dict){ if (dict){
// if (!yon_dictionary_get(&__yon_config_ignored,dict->key)){ if (!yon_char_is_empty(dict->data)){
yon_config_remove_ignore(dict->key); yon_config_remove_ignore(dict->key);
((yon_config_parameter*)dict)->flag1=-1; ((yon_config_parameter*)dict)->flag1=-1;
dict->data=""; dict->data="";
return 1; return 1;
// } else return 0; }
} }
} }
return 0; return 0;

Loading…
Cancel
Save