diff options
Diffstat (limited to 'apps')
-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 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 | } |