From: Sergey Poznyakoff Date: Wed, 14 Oct 2009 14:51:19 +0000 (+0300) Subject: Bugfix. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=87240ee7c477ae4960cf81d3c38691ae93ceaee8;p=chaz%2Ftar Bugfix. * src/buffer.c (_open_archive): Call guess_seekable_archive only if the call to open_compressed_archive succeeded. --- diff --git a/src/buffer.c b/src/buffer.c index d7ff214..613a7e8 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -596,7 +596,8 @@ _open_archive (enum access_mode wanted_access) { case ACCESS_READ: archive = open_compressed_archive (); - guess_seekable_archive (); + if (archive >= 0) + guess_seekable_archive (); break; case ACCESS_WRITE: