diff --git a/src/ewmh.c b/src/ewmh.c index 9b255ad..74002fc 100644 --- a/src/ewmh.c +++ b/src/ewmh.c @@ -210,7 +210,7 @@ void ewmh_get_desktop_names(void) { char *str = NULL; - int S, s, i, len = 0, pos = 0; + int S, s, i = 0, len = 0, pos = 0; S = screen_count(); diff --git a/src/layout.c b/src/layout.c index 43f992a..af796d0 100644 --- a/src/layout.c +++ b/src/layout.c @@ -331,7 +331,7 @@ multi_tile(int screen, Position type) XRectangle sg = sgeo[screen]; XRectangle mastergeo = {sg.x, sg.y, 0, 0}; XRectangle cgeo = {sg.x, sg.y, 0, 0}; - uint i, n, tilesize, mwfact, nmaster = tags[screen][seltag[screen]].nmaster; + uint i, n, tilesize = 0, mwfact, nmaster = tags[screen][seltag[screen]].nmaster; for(n = 0, c = tiled_client(screen, clients); c; c = tiled_client(screen, c->next), ++n); CHECK(n); @@ -462,7 +462,7 @@ mirror(int screen, Bool horizontal) XRectangle mastergeo = {sg.x, sg.y, sg.width, sg.height}; XRectangle cgeo = {sg.x, sg.y , sg.width, sg.height}; XRectangle nextg[2] = { {0} }; - uint i, n, tilesize, mwfact; + uint i, n, tilesize = 0, mwfact; uint nmaster = tags[screen][seltag[screen]].nmaster; int pa, imp; Bool isp = 0;