diff --git a/src/tar.c b/src/tar.c index ef2fc74..fedb5fa 100644 --- a/src/tar.c +++ b/src/tar.c @@ -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)