mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-19 07:55:48 +01:00
fixes to comply to ANSI C
This commit is contained in:
@@ -1615,7 +1615,9 @@ WMReadPropListFromFile(char *file)
|
||||
pldata->lineNumber = 1;
|
||||
|
||||
if (fread(pldata->ptr, length, 1, f) != 1) {
|
||||
wsyserror(_("error reading from file '%s'"), file);
|
||||
if (ferror(f)) {
|
||||
wsyserror(_("error reading from file '%s'"), file);
|
||||
}
|
||||
plist = NULL;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user