Correct a compile error when libbz2/zlib are unavailable.

This commit is contained in:
Tim Kientzle 2008-02-19 05:44:59 +00:00
parent ee10f0feb0
commit f167d4f9c3
2 changed files with 2 additions and 2 deletions

View File

@ -145,7 +145,7 @@ init(struct archive_read *a, const void *buff, size_t n)
(void)buff; /* UNUSED */
(void)n; /* UNUSED */
archive_set_error(a, -1,
archive_set_error(&a->archive, -1,
"This version of libarchive was compiled without bzip2 support");
return (ARCHIVE_FATAL);
}

View File

@ -146,7 +146,7 @@ init(struct archive_read *a, const void *buff, size_t n)
(void)buff; /* UNUSED */
(void)n; /* UNUSED */
archive_set_error(a, -1,
archive_set_error(&a->archive, -1,
"This version of libarchive was compiled without gzip support");
return (ARCHIVE_FATAL);
}