Fix an improper file_exist check in zxbox.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15119 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c03002b256
commit
50eed82f6b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue