From: Michael Stapelberg Date: Fri, 21 Oct 2011 22:15:15 +0000 (+0100) Subject: i3bar: Bugfix: Don’t crash when tray_output is not set (Thanks fernandotcl) X-Git-Tag: 4.1~92^2~7 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=014c3e4b95b574e3b290889c29bd537432553056;p=i3%2Fi3 i3bar: Bugfix: Don’t crash when tray_output is not set (Thanks fernandotcl) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index a9ecc004..fa3860e8 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -1359,7 +1359,8 @@ void reconfig_windows() { } if (!tray_configured && - strcasecmp("none", config.tray_output) != 0) { + (!config.tray_output || + strcasecmp("none", config.tray_output) != 0)) { init_tray(); tray_configured = true; }