mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 20:38:08 +01:00
Fix uninitialized vars
Initialized variables that are conditionally set. In particular, this construct is dangerous: void *p; if (something) p = couldReturnNull(); if (!p) p = fallbackFunction();
This commit is contained in:
committed by
Carlos R. Mafra
parent
bbf3635590
commit
12de2f319e
@@ -148,6 +148,7 @@ static int getMWMHints(Window window, MWMHints *mwmhints)
|
||||
if (!data)
|
||||
return 0;
|
||||
|
||||
mwmhints->flags = 0;
|
||||
if (count >= 4) {
|
||||
mwmhints->flags = data[0];
|
||||
mwmhints->functions = data[1];
|
||||
|
||||
Reference in New Issue
Block a user