diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-04-27 18:33:08 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-04-27 18:33:08 +0000 |
commit | 379ce7aa2e2c48704092f20f5158e4943c2ef373 (patch) | |
tree | d6e858558e7245aaed85810c153523796fd0cbbf /lib/libarchive/archive_read_open_file.c | |
parent | 8958ccc8b0d4ae23fed5df59edf3791d898978f1 (diff) | |
download | FreeBSD-src-379ce7aa2e2c48704092f20f5158e4943c2ef373.zip FreeBSD-src-379ce7aa2e2c48704092f20f5158e4943c2ef373.tar.gz |
Merge r1052,r1055 from libarchive.googlecode.com:
Clear the error flag on entry to a few more API functions.
Diffstat (limited to 'lib/libarchive/archive_read_open_file.c')
-rw-r--r-- | lib/libarchive/archive_read_open_file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_read_open_file.c b/lib/libarchive/archive_read_open_file.c index e77d447..37039e9 100644 --- a/lib/libarchive/archive_read_open_file.c +++ b/lib/libarchive/archive_read_open_file.c @@ -70,6 +70,7 @@ archive_read_open_FILE(struct archive *a, FILE *f) size_t block_size = 128 * 1024; void *b; + archive_clear_error(a); mine = (struct read_FILE_data *)malloc(sizeof(*mine)); b = malloc(block_size); if (mine == NULL || b == NULL) { |