Fix possible use of unitialized variables
This commit is contained in:
parent
0e8ffff152
commit
46608a14be
@ -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();
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user