summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMichael Giacomelli <giac2000@hotmail.com>2009-05-27 19:21:05 +0000
committerMichael Giacomelli <giac2000@hotmail.com>2009-05-27 19:21:05 +0000
commit9e21a4250972b2b63724978a89c060facbc059da (patch)
tree9cc818d94cc02dc316a910e61bed6dfaa1f269d0 /apps
parent89322d1afe7da887231bb54e57e06cf6d258d127 (diff)
downloadrockbox-9e21a4250972b2b63724978a89c060facbc059da.tar.gz
rockbox-9e21a4250972b2b63724978a89c060facbc059da.tar.bz2
rockbox-9e21a4250972b2b63724978a89c060facbc059da.zip
Commit next part of FS#10138 by Teruaki Kawashima. Fixes check for open error in rocklife.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21100 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/rocklife.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rocklife.c b/apps/plugins/rocklife.c
index e039b451eb..8a1a1b35f2 100644
--- a/apps/plugins/rocklife.c
+++ b/apps/plugins/rocklife.c
@@ -129,7 +129,7 @@ void init_grid(char *pgrid){
static bool load_cellfile(const char *file, char *pgrid){
int fd;
fd = rb->open(file, O_RDONLY);
- if (fd==-1)
+ if (fd<0)
return false;
init_grid(pgrid);