From 8a27efea720ea4db34b0ad0c1c298349fef32f8b Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sun, 21 Jun 2009 01:09:55 -0400 Subject: [PATCH] Clear any warning/error messages set by archive_read_support_compression_* functions, since we're ignoring their return codes. This eliminates the weird behaviour of printing "Using external unxz program for xz decompression" if an unrelated error occurs when opening an archive (due to the message lingering in the error message buffer). Approved by: kientzle SVN-Revision: 1176 --- libarchive/archive_read_support_compression_all.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libarchive/archive_read_support_compression_all.c b/libarchive/archive_read_support_compression_all.c index 063c28897..dcd6a31ca 100644 --- a/libarchive/archive_read_support_compression_all.c +++ b/libarchive/archive_read_support_compression_all.c @@ -50,5 +50,7 @@ archive_read_support_compression_all(struct archive *a) * "as much as possible." Clients who need specific * compression should enable those individually so they can * verify the level of support. */ + /* Clear any warning messages set by the above functions. */ + archive_clear_error(a); return (ARCHIVE_OK); } -- 2.47.3