aboutsummaryrefslogtreecommitdiff
path: root/swaybar/bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar/bar.c')
-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
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) {