diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-04-24 19:57:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-24 19:57:03 +0200 |
commit | 4779d8ca41fac7ef91888fc3477f16d24ff49cad (patch) | |
tree | d1de6034752d7cec56cdc1cdb598e87f6de68c7f /swaybar | |
parent | df245780d28c89ba50cebe485f622d1b2db8c1fc (diff) | |
parent | 4568e6c7835da29c9010ecb18ba6c430da5b2770 (diff) |
Merge branch 'master' into master
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/bar.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c index d407db4f..b4c0698f 100644 --- 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) { |