From 06f46955c0be2990fe09620ec51bfb661fb0f8cc Mon Sep 17 00:00:00 2001 From: Hummer12007 Date: Mon, 18 Jul 2016 00:57:49 +0300 Subject: Fix a warning --- swaybar/bar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 if (!swaybar.config->wrap_scroll) { // Find output this window lives on int i; - struct output *output; + struct output *output = NULL; for (i = 0; i < swaybar.outputs->length; ++i) { output = swaybar.outputs->items[i]; if (output->window == window) { -- cgit v1.2.3