1
0
Fork 0
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:
Björn Stenberg 2003-04-11 07:47:30 +00:00
parent cf92db153f
commit f0c0765654

View file

@ -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)