summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2003-04-30 02:55:23 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2003-04-30 02:55:23 +0000
commitc4cdc75cebd08b7d199c76cb4f814954354d3b13 (patch)
tree0ef7e65e25c6b2b6825f35bdcea6513960b64b67 /apps
parenta4ad4f7ef6660bfeca337d80e2a7e69ab08ea2f7 (diff)
downloadrockbox-c4cdc75cebd08b7d199c76cb4f814954354d3b13.tar.gz
rockbox-c4cdc75cebd08b7d199c76cb4f814954354d3b13.zip
Better error handling when loading WPS config file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3632 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index c35ba8675c..acb839ea50 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -163,7 +163,7 @@ bool wps_load(char* file, bool display)
fd = open(file, O_RDONLY);
- if (-1 != fd)
+ if (fd >= 0)
{
int numread = read(fd, buffer, sizeof(buffer) - 1);