forked from len0rd/rockbox
Fixed buggy open() return code check in settings_load_config(). (Christian Determann)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3531 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
cf92db153f
commit
f0c0765654
1 changed files with 1 additions and 1 deletions
|
@ -854,7 +854,7 @@ bool settings_load_config(char* file)
|
||||||
char line[128];
|
char line[128];
|
||||||
|
|
||||||
fd = open(file, O_RDONLY);
|
fd = open(file, O_RDONLY);
|
||||||
if (-1 == fd)
|
if (fd < 0)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
while (read_line(fd, line, sizeof line) > 0)
|
while (read_line(fd, line, sizeof line) > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue