Explorar el Código

Bugfix.

* src/buffer.c (_open_archive): Call guess_seekable_archive
only if the call to open_compressed_archive succeeded.
Sergey Poznyakoff hace 15 años
padre
commit
87240ee7c4
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/buffer.c

+ 2 - 1
src/buffer.c

@@ -596,7 +596,8 @@ _open_archive (enum access_mode wanted_access)
       {
       {
       case ACCESS_READ:
       case ACCESS_READ:
         archive = open_compressed_archive ();
         archive = open_compressed_archive ();
-	guess_seekable_archive ();
+	if (archive >= 0)
+	  guess_seekable_archive ();
         break;
         break;
 
 
       case ACCESS_WRITE:
       case ACCESS_WRITE: