diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-08-12 08:18:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-12 08:18:30 -0400 |
commit | 1b9ee85bc526f5bdbf0a7f786e88ffdbceaadd8f (patch) | |
tree | a645a658b708e507abba06e9db853ed6f32b8c3f | |
parent | Re-enable implicit fallthrough warnings (diff) | |
parent | Prevent crash if DBus connection is NULL (diff) | |
download | sway-1b9ee85bc526f5bdbf0a7f786e88ffdbceaadd8f.tar.gz sway-1b9ee85bc526f5bdbf0a7f786e88ffdbceaadd8f.tar.zst sway-1b9ee85bc526f5bdbf0a7f786e88ffdbceaadd8f.zip |
Prevent crash if DBus connection is NULL
-rw-r--r-- | swaybar/tray/dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/tray/dbus.c b/swaybar/tray/dbus.c index f562baeb..8e719fd9 100644 --- a/swaybar/tray/dbus.c +++ b/swaybar/tray/dbus.c | |||
@@ -138,7 +138,7 @@ static void dispatch_status(DBusConnection *connection, DBusDispatchStatus new_s | |||
138 | /* Public functions below */ | 138 | /* Public functions below */ |
139 | 139 | ||
140 | void dispatch_dbus() { | 140 | void dispatch_dbus() { |
141 | if (!should_dispatch) { | 141 | if (!should_dispatch || !conn) { |
142 | return; | 142 | return; |
143 | } | 143 | } |
144 | 144 | ||