Return fclose's status code

This commit is contained in:
apio 2022-11-22 17:25:17 +01:00
parent d123c49946
commit 0fbcdde399

View File

@ -30,8 +30,7 @@ int minitar_close(struct minitar* mp)
{
int rc = fclose(mp->stream);
free(mp);
if (rc) return rc;
return 0;
return rc;
}
static struct minitar_entry* minitar_attempt_read_entry(struct minitar* mp, int* valid)