sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 63267240bf34af7095a235e81cf32d1090e1dd60
parent 5024f0888581cde0a9bc6b86222c14a97890b479
Author: Alex Xu (Hello71) <alex_y_xu@yahoo.ca>
Date:   Tue, 24 Apr 2018 12:06:13 -0400

Work around maybe-uninitialized in bar.c

Fixes #1855.

Diffstat:
Mswaybar/bar.c | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/swaybar/bar.c b/swaybar/bar.c @@ -162,9 +162,11 @@ static void wl_pointer_axis(void *data, struct wl_pointer *wl_pointer, return; } + // last doesn't actually need initialization, + // but gcc (7.3.1) is too dumb to figure it out struct swaybar_workspace *first = NULL; struct swaybar_workspace *active = NULL; - struct swaybar_workspace *last; + struct swaybar_workspace *last = NULL; struct swaybar_workspace *iter; wl_list_for_each(iter, &output->workspaces, link) {