mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +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
@@ -404,7 +404,7 @@ char *ShrinkString(WMFont * font, char *string, int width)
|
||||
|
||||
char *FindImage(char *paths, char *file)
|
||||
{
|
||||
char *tmp, *path;
|
||||
char *tmp, *path = NULL;
|
||||
|
||||
tmp = strrchr(file, ':');
|
||||
if (tmp) {
|
||||
|
||||
Reference in New Issue
Block a user