summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 01615976c..e165012d5 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1283,7 +1283,7 @@ static void edit_dc_nicknames(GtkWidget *w, gpointer data)
}
gtk_widget_destroy(confirm);
}
- if (res == GTK_RESPONSE_APPLY && holdnicknames->model != NULL ) {
+ if (res == GTK_RESPONSE_APPLY && holdnicknames && holdnicknames->model != NULL ) {
struct device_info * walk = holdnicknames;
struct device_info * release = holdnicknames;
struct device_info * track = holdnicknames->next;