Clean up the struct archive used for reading an archive in the handling

of @archive commands.  This bug should be harmless as long as you don't
use an excessive number of @archive commands.

MFC after:	1 week
This commit is contained in:
Colin Percival 2007-01-02 15:03:38 +00:00
parent d82088b28f
commit 1b720f2a86

View File

@ -513,6 +513,7 @@ append_archive(struct bsdtar *bsdtar, struct archive *a, const char *filename)
filename, archive_error_string(ina));
bsdtar->return_value = 1;
}
archive_read_finish(ina);
/* Note: If we got here, we saw no write errors, so return success. */
return (0);