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_fd.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_fd.c')
-rw-r--r-- | lib/libarchive/archive_read_open_fd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/libarchive/archive_read_open_fd.c b/lib/libarchive/archive_read_open_fd.c index a7c2e29..259ddc2 100644 --- a/lib/libarchive/archive_read_open_fd.c +++ b/lib/libarchive/archive_read_open_fd.c @@ -66,6 +66,7 @@ archive_read_open_fd(struct archive *a, int fd, size_t block_size) struct read_fd_data *mine; void *b; + archive_clear_error(a); if (fstat(fd, &st) != 0) { archive_set_error(a, errno, "Can't stat fd %d", fd); return (ARCHIVE_FATAL); |