summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2003-04-11 07:47:30 +0000
committerBjörn Stenberg <bjorn@haxx.se>2003-04-11 07:47:30 +0000
commitf0c076565432a66be9384ddee951e82fcedfe0d3 (patch)
treefc8d9f278e1bfd2423a796a37661091397cf69db
parentcf92db153f5c6115466c58268bbd90e7a05ab472 (diff)
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
-rw-r--r--apps/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 9676f497d6..18a9e86fab 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -854,7 +854,7 @@ bool settings_load_config(char* file)
char line[128];
fd = open(file, O_RDONLY);
- if (-1 == fd)
+ if (fd < 0)
return false;
while (read_line(fd, line, sizeof line) > 0)