summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-10-15 08:28:19 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-10-15 08:28:19 +0000
commit50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b (patch)
tree581988bd012fd26eeb90e35ed73bc031b358c0a8 /apps
parentc03002b256e6922ea76e868d32f15e6362f8a9a4 (diff)
downloadrockbox-50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b.tar.gz
rockbox-50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b.zip
Fix an improper file_exist check in zxbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15119 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/zxbox/zxmisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/zxbox/zxmisc.c b/apps/plugins/zxbox/zxmisc.c
index df147be7bf..c4dbf888e5 100644
--- a/apps/plugins/zxbox/zxmisc.c
+++ b/apps/plugins/zxbox/zxmisc.c
@@ -79,7 +79,7 @@ int file_exist(const char *filename)
79 int fd; 79 int fd;
80 80
81 fd = rb->open(filename, O_RDONLY); 81 fd = rb->open(filename, O_RDONLY);
82 if(fd != NULL) { 82 if(fd >= 0) {
83 rb->close(fd); 83 rb->close(fd);
84 return 1; 84 return 1;
85 } 85 }