mirror of
https://github.com/gryf/wmaker.git
synced 2026-10-09 11:12:29 +02: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:
1 parent
bbf3635590
commit
12de2f319e
6 files changed
+13
-7
No files matched your search
@@ -544,7 +544,7 @@ static Pixmap renderTexture(WMScreen * scr, WMPropList * texture, int width, int
|
||||
int style;
|
||||
RColor rcolor2;
|
||||
int i;
|
||||
RImage *grad, *timage;
|
||||
RImage *grad, *timage = NULL;
|
||||
char *path;
|
||||
|
||||
switch (toupper(type[1])) {
|
||||
|
||||
Reference in new issue
Block a user