From 5cdd920d1267a7548ab492864c4a20a20c3d93ff Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sun, 6 Dec 2009 13:52:28 +0000 Subject: Correct checking return value of open in plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/superdom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins/superdom.c') diff --git a/apps/plugins/superdom.c b/apps/plugins/superdom.c index 3fac0d0434..69dc607090 100644 --- a/apps/plugins/superdom.c +++ b/apps/plugins/superdom.c @@ -1935,7 +1935,7 @@ static int load_game(const char* file) { int fd; fd = rb->open(file, O_RDONLY); - if(fd == 0) { + if(fd < 0) { DEBUGF("Couldn't open savegame\n"); return -1; } -- cgit v1.2.3