Added check for default parameter value editing while loading config

pull/9/head
parent 5084cf3def
commit 5302c6bbd0

@ -957,7 +957,11 @@ int yon_config_load_register_no_cleaning(YON_CONFIG_TYPE config_type,char *secti
if (!yon_dictionary_get((dictionary**)&__yon__config__strings,key)){
yon_config_parameter_add_or_create_if_exists_with_data(__yon__config__strings,key,yon_char_new(final_str));
} else {
if (strcmp((char*)__yon__config__strings->data,final_str)){
__yon__config__strings->data=final_str;
} else {
continue;
}
}
yon_config_remove_ignore(key);
if (config_type==YON_CONFIG_DEFAULT){
@ -1011,7 +1015,11 @@ int yon_config_load_register(YON_CONFIG_TYPE config_type,char *section,char *par
if (!yon_dictionary_get((dictionary**)&__yon__config__strings,key)){
yon_config_parameter_add_or_create_if_exists_with_data(__yon__config__strings,key,yon_char_new(final_str));
} else {
if (strcmp((char*)__yon__config__strings->data,final_str)){
__yon__config__strings->data=final_str;
} else {
continue;
}
}
yon_config_remove_ignore(key);
if (config_type==YON_CONFIG_DEFAULT){

Loading…
Cancel
Save