diff --git a/source/ubinstall-gtk-advanced.c b/source/ubinstall-gtk-advanced.c index e39bc54..a490752 100644 --- a/source/ubinstall-gtk-advanced.c +++ b/source/ubinstall-gtk-advanced.c @@ -42,7 +42,7 @@ void on_advanced_part_remove_part(GtkWidget *self, main_window *widgets){ for_iter (model, &iter){ char *target; gtk_tree_model_get(model,&iter,0,&target,-1); - if (!strcmp(data->partition,target)){ + if (data->partition&&!strcmp(data->partition,target)){ gtk_widget_destroy(part->MainBox); gtk_list_store_set(widgets->PartitionsList,&iter,7,0,-1); free(part);