Correct a compile error when libbz2/zlib are unavailable.
This commit is contained in:
parent
ee10f0feb0
commit
f167d4f9c3
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user