diff options
author | Teruaki Kawashima <teru@rockbox.org> | 2009-12-06 13:52:28 +0000 |
---|---|---|
committer | Teruaki Kawashima <teru@rockbox.org> | 2009-12-06 13:52:28 +0000 |
commit | 5cdd920d1267a7548ab492864c4a20a20c3d93ff (patch) | |
tree | 518ddb3cbbf4eabcb8ca0941e386a285c56b53bb /apps/plugins/viewer.c | |
parent | e760a5abbf951fd22e1dd8eb116e344ad3d76a61 (diff) | |
download | rockbox-5cdd920d1267a7548ab492864c4a20a20c3d93ff.tar.gz rockbox-5cdd920d1267a7548ab492864c4a20a20c3d93ff.zip |
Correct checking return value of open in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
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); |