forked from len0rd/rockbox
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);
|
fd = open(file, O_RDONLY);
|
||||||
|
|
||||||
if (-1 != fd)
|
if (fd >= 0)
|
||||||
{
|
{
|
||||||
int numread = read(fd, buffer, sizeof(buffer) - 1);
|
int numread = read(fd, buffer, sizeof(buffer) - 1);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue