From: Tim Kientzle Date: Sat, 8 Nov 2008 21:52:59 +0000 (-0500) Subject: Fix lzma decoder to build properly when LZMA libraries are unavailable. X-Git-Tag: v2.6.0~52 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0d1f8bb69f5d0d412fddf36092eae785d89226a4;p=thirdparty%2Flibarchive.git Fix lzma decoder to build properly when LZMA libraries are unavailable. SVN-Revision: 241 --- diff --git a/libarchive/archive_read_support_compression_lzma.c b/libarchive/archive_read_support_compression_lzma.c index 0f8e4b36f..49749ed85 100644 --- a/libarchive/archive_read_support_compression_lzma.c +++ b/libarchive/archive_read_support_compression_lzma.c @@ -130,7 +130,7 @@ lzma_reader_bid(struct archive_reader *self, const void *buff, size_t len) * decompression. We can, however, still detect compressed archives * and emit a useful message. */ -static int +static struct archive_read_source * lzma_reader_init(struct archive_read *a, struct archive_reader *reader, struct archive_read_source *upstream, const void *buff, size_t n) { @@ -142,7 +142,7 @@ lzma_reader_init(struct archive_read *a, struct archive_reader *reader, archive_set_error(&a->archive, -1, "This version of libarchive was compiled without lzma support"); - return (ARCHIVE_FATAL); + return (NULL); }