From e4ee49a3d8deda3fb4167af62d616d374da11d05 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Tue, 3 Apr 2018 20:53:26 -0600 Subject: [PATCH] Initialize output.item_refs before use --- swaybar/bar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swaybar/bar.c b/swaybar/bar.c index d38ea753a..65035177c 100644 --- a/swaybar/bar.c +++ b/swaybar/bar.c @@ -223,6 +223,9 @@ static void handle_global(void *data, struct wl_registry *registry, output->output = wl_registry_bind(registry, name, &wl_output_interface, 1); output->index = index++; +#ifdef ENABLE_TRAY + wl_list_init(&output->item_refs); +#endif wl_list_init(&output->workspaces); wl_list_init(&output->hotspots); wl_list_insert(&bar->outputs, &output->link);