forked from len0rd/rockbox
Correct checking return value of open in plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23874 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e760a5abbf
commit
5cdd920d12
11 changed files with 20 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue