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:
Michael Sevakis 2007-10-15 08:28:19 +00:00
parent c03002b256
commit 50eed82f6b

View file

@ -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;
}