Test fix for crash

pull/235/head
Ivan Dmitrievich Yartsev 10 months ago
parent 87c24ac9d2
commit bb32edd4cf

@ -223,13 +223,17 @@ if (main_config.sync_users){
} }
void yon_accept_changes(){ void yon_accept_changes(){
char *remove_homes = ""; if (main_config.homes_size&&main_config.remove_homes){
for (int i=0;i<main_config.homes_size;i++){ char *remove_homes = "";
remove_homes = yon_char_unite(remove_homes,yon_char_is_empty(remove_homes)?"":",",main_config.remove_homes[i],NULL); for (int i=0;i<main_config.homes_size;i++){
} remove_homes = yon_char_unite(remove_homes,yon_char_is_empty(remove_homes)?"":",",main_config.remove_homes[i],NULL);
if (!yon_char_is_empty(remove_homes)){ }
if (system(remove_home_dirs_command(remove_homes))){}; if (!yon_char_is_empty(remove_homes)){
if (system(remove_home_dirs_command(remove_homes))){};
}
} }
main_config.remove_homes=NULL;
main_config.homes_size=0;
} }
void yon_hide_passwords(template_saving_window *window){ void yon_hide_passwords(template_saving_window *window){

Loading…
Cancel
Save