diff options
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r-- | apps/plugins/viewer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 5b84c08694..046c76523a 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -1193,7 +1193,7 @@ static bool viewer_init(void) | |||
1193 | #endif | 1193 | #endif |
1194 | 1194 | ||
1195 | fd = rb->open(file_name, O_RDONLY); | 1195 | fd = rb->open(file_name, O_RDONLY); |
1196 | if (fd==-1) | 1196 | if (fd < 0) |
1197 | return false; | 1197 | return false; |
1198 | 1198 | ||
1199 | file_size = rb->filesize(fd); | 1199 | file_size = rb->filesize(fd); |