diff options
| author | Linus Nielsen Feltzing <linus@haxx.se> | 2003-04-30 02:55:23 +0000 |
|---|---|---|
| committer | Linus Nielsen Feltzing <linus@haxx.se> | 2003-04-30 02:55:23 +0000 |
| commit | c4cdc75cebd08b7d199c76cb4f814954354d3b13 (patch) | |
| tree | 0ef7e65e25c6b2b6825f35bdcea6513960b64b67 /apps | |
| parent | a4ad4f7ef6660bfeca337d80e2a7e69ab08ea2f7 (diff) | |
| download | rockbox-c4cdc75cebd08b7d199c76cb4f814954354d3b13.zip rockbox-c4cdc75cebd08b7d199c76cb4f814954354d3b13.tar.gz rockbox-c4cdc75cebd08b7d199c76cb4f814954354d3b13.tar.bz2 rockbox-c4cdc75cebd08b7d199c76cb4f814954354d3b13.tar.xz | |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c index c35ba86..acb839e 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); |