* src/buffer.c (_open_archive): Call guess_seekable_archive
only if the call to open_compressed_archive succeeded.
This commit is contained in:
Sergey Poznyakoff
2009-10-14 17:51:19 +03:00
parent 84a55f12e5
commit 87240ee7c4

View File

@@ -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: