forked from enlightenment/enlightenment
close file sooner so we don't leak fds
SVN revision: 56153
This commit is contained in:
parent
d143974767
commit
1fdff41c5e
|
@ -318,12 +318,12 @@ check(void)
|
||||||
if (f)
|
if (f)
|
||||||
{
|
{
|
||||||
fgets(buf, sizeof(buf), f);
|
fgets(buf, sizeof(buf), f);
|
||||||
|
fclose(f);
|
||||||
buf[sizeof(buf) - 1] = 0;
|
buf[sizeof(buf) - 1] = 0;
|
||||||
if (sscanf(buf, "%i", &temp) == 1)
|
if (sscanf(buf, "%i", &temp) == 1)
|
||||||
ret = 1;
|
ret = 1;
|
||||||
else
|
else
|
||||||
goto error;
|
goto error;
|
||||||
fclose(f);
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
goto error;
|
goto error;
|
||||||
|
|
Loading…
Reference in New Issue