1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-23 14:42:29 +01:00

Fix some "'var' may be used uninitialized" warnings

The one in WPrefs.app/Appearance.c is indirect: the function might
be inlined and might return an uninitialized value, which causes gcc to
complain that the caller might use that uninitialized return value.
This commit is contained in:
Brad Jorsch
2011-08-09 16:13:13 -04:00
committed by Carlos R. Mafra
parent d9296ff9a4
commit a06b0673d8
2 changed files with 3 additions and 0 deletions

View File

@@ -320,6 +320,7 @@ static void getLocalizedStringValue(char **target, const char *line, int *match_
p = line;
kstart = 0;
sqbstart = 0;
sqbend = 0;
locale = NULL;
/* skip until after '=', mark if '[' and ']' is found */