From: Max Kellermann Date: Wed, 2 Aug 2017 07:40:14 +0000 (+0200) Subject: screen_queue: re-add NULL check X-Git-Tag: v0.28~11 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=52abee9034de15172d9dcbc5c7519b109ee8b783;p=ncmpc.git screen_queue: re-add NULL check It accidently got lost in 885d6cf20ac418dacdf999f7cbdfc684fdc3e735 --- diff --git a/src/screen_queue.c b/src/screen_queue.c index 7bb30ae..dd27df0 100644 --- a/src/screen_queue.c +++ b/src/screen_queue.c @@ -378,7 +378,10 @@ screen_queue_exit(void) static const char * screen_queue_title(char *str, size_t size) { - g_snprintf(str, size, _("Queue on %s"), queue_screen.connection_name); + if (queue_screen.connection_name == NULL) + return _("Queue"); + + g_snprintf(str, size, _("Queue on %s"), queue_screen.connection_name); return str; }