Test fix for crash

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

@ -223,6 +223,7 @@ if (main_config.sync_users){
} }
void yon_accept_changes(){ void yon_accept_changes(){
if (main_config.homes_size&&main_config.remove_homes){
char *remove_homes = ""; char *remove_homes = "";
for (int i=0;i<main_config.homes_size;i++){ 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); remove_homes = yon_char_unite(remove_homes,yon_char_is_empty(remove_homes)?"":",",main_config.remove_homes[i],NULL);
@ -231,6 +232,9 @@ void yon_accept_changes(){
if (system(remove_home_dirs_command(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){
GtkTreeModel *model = GTK_TREE_MODEL(window->list); GtkTreeModel *model = GTK_TREE_MODEL(window->list);

Loading…
Cancel
Save