Fixed saving of unchanged parameters

pull/85/head
parent 6626b371f6
commit 62ac915712

@ -1246,11 +1246,12 @@ config_str yon_config_get_save_parameters_by_list(int *size, config_str paramete
current_size = &removed_size;
break;
case 1:
case 0:
action = "set";
current = &updated;
current_size = &updated_size;
break;
default:
continue;
}
int position = yon_char_parsed_find_element(*current,*current_size,((yon_config_parameter*)temp)->section);
if (position>=0){
@ -1317,7 +1318,6 @@ config_str yon_config_get_save_parameters_by_key(int *size,...){
current = &removed;
current_size = &removed_size;
break;
case 0:
case 1:
action = "set";
current = &updated;

Loading…
Cancel
Save