From 52abee9034de15172d9dcbc5c7519b109ee8b783 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 2 Aug 2017 09:40:14 +0200 Subject: [PATCH] screen_queue: re-add NULL check It accidently got lost in 885d6cf20ac418dacdf999f7cbdfc684fdc3e735 --- src/screen_queue.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } -- 2.30.2