summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Hummer12007 <hilobakho@gmail.com>2016-07-18 00:57:49 +0300
committerLibravatar GitHub <noreply@github.com>2016-07-18 00:57:49 +0300
commit06f46955c0be2990fe09620ec51bfb661fb0f8cc (patch)
treeea7aabcc0788c182dd2ae092ff5b1b6599ca302e
parentFix clang warning (diff)
downloadsway-06f46955c0be2990fe09620ec51bfb661fb0f8cc.tar.gz
sway-06f46955c0be2990fe09620ec51bfb661fb0f8cc.tar.zst
sway-06f46955c0be2990fe09620ec51bfb661fb0f8cc.zip
Fix a warning
-rw-r--r--swaybar/bar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 41538052..e3e53622 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -99,7 +99,7 @@ static void mouse_scroll_notify(struct window *window, enum scroll_direction dir
99 if (!swaybar.config->wrap_scroll) { 99 if (!swaybar.config->wrap_scroll) {
100 // Find output this window lives on 100 // Find output this window lives on
101 int i; 101 int i;
102 struct output *output; 102 struct output *output = NULL;
103 for (i = 0; i < swaybar.outputs->length; ++i) { 103 for (i = 0; i < swaybar.outputs->length; ++i) {
104 output = swaybar.outputs->items[i]; 104 output = swaybar.outputs->items[i];
105 if (output->window == window) { 105 if (output->window == window) {