summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gtk-gui.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 60dde0399..d096e7e90 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -1737,6 +1737,9 @@ void remember_dc(const char *model, uint32_t deviceid, const char *nickname, gbo
if (!nn_entry)
return;
+ if (!nickname)
+ nickname = "";
+
/* No existing nickname? */
if (!nn_entry->nickname) {
char buffer[160];