Return fclose's status code
This commit is contained in:
parent
d123c49946
commit
0fbcdde399
@ -30,8 +30,7 @@ int minitar_close(struct minitar* mp)
|
|||||||
{
|
{
|
||||||
int rc = fclose(mp->stream);
|
int rc = fclose(mp->stream);
|
||||||
free(mp);
|
free(mp);
|
||||||
if (rc) return rc;
|
return rc;
|
||||||
return 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct minitar_entry* minitar_attempt_read_entry(struct minitar* mp, int* valid)
|
static struct minitar_entry* minitar_attempt_read_entry(struct minitar* mp, int* valid)
|
||||||
|
Loading…
Reference in New Issue
Block a user