diff options
| author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-15 08:28:19 +0000 |
|---|---|---|
| committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-15 08:28:19 +0000 |
| commit | 50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b (patch) | |
| tree | 581988bd012fd26eeb90e35ed73bc031b358c0a8 /apps/plugins | |
| parent | c03002b256e6922ea76e868d32f15e6362f8a9a4 (diff) | |
| download | rockbox-50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b.zip rockbox-50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b.tar.gz rockbox-50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b.tar.bz2 rockbox-50eed82f6bd4f1a523d5c0fa46bde6f3e1b6c28b.tar.xz | |
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/plugins')
| -rw-r--r-- | apps/plugins/zxbox/zxmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/zxbox/zxmisc.c b/apps/plugins/zxbox/zxmisc.c index df147be..c4dbf88 100644 --- a/apps/plugins/zxbox/zxmisc.c +++ b/apps/plugins/zxbox/zxmisc.c @@ -79,7 +79,7 @@ int file_exist(const char *filename) int fd; fd = rb->open(filename, O_RDONLY); - if(fd != NULL) { + if(fd >= 0) { rb->close(fd); return 1; } |