Better error handling when loading WPS config file
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3632 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a4ad4f7ef6
commit
c4cdc75ceb
1 changed files with 1 additions and 1 deletions
|
@ -163,7 +163,7 @@ bool wps_load(char* file, bool display)
|
|||
|
||||
fd = open(file, O_RDONLY);
|
||||
|
||||
if (-1 != fd)
|
||||
if (fd >= 0)
|
||||
{
|
||||
int numread = read(fd, buffer, sizeof(buffer) - 1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue