From: Michael Stapelberg Date: Sun, 14 Apr 2013 20:54:15 +0000 (+0200) Subject: Bugfix: fix crash when not having tray_output configured (Thanks Layus) X-Git-Tag: 4.6~45^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=72c279bc39953c04ddee1d8934a488388b30c3b4;p=i3%2Fi3 Bugfix: fix crash when not having tray_output configured (Thanks Layus) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index d5d4eb86..3cdf6ed7 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -505,7 +505,9 @@ static void handle_client_message(xcb_client_message_event_t* event) { } /* In case of tray_output == primary and there is no primary output * configured, we fall back to the first available output. */ - if (output == NULL && strcasecmp("primary", config.tray_output) == 0) { + if (output == NULL && + config.tray_output && + strcasecmp("primary", config.tray_output) == 0) { SLIST_FOREACH(walk, outputs, slist) { if (!walk->active) continue;