]> Dogcows Code - chaz/tar/commitdiff
Minor improvement: reset hit_eof in open_compressed_archive
authorSergey Poznyakoff <gray@gnu.org.ua>
Tue, 21 Dec 2004 15:00:29 +0000 (15:00 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Tue, 21 Dec 2004 15:00:29 +0000 (15:00 +0000)
src/buffer.c

index 47e1be6cd0db10bd1847e0ffbf3ff7188bebc0f9..5c6412fbf63ac63e2a8823f1026c10ebd6dabd9d 100644 (file)
@@ -205,10 +205,7 @@ check_compressed_archive ()
 
   for (p = magic + 1; p < magic + NMAGIC; p++)
     if (memcmp (record_start->buffer, p->magic, p->length) == 0)
-      {
-       hit_eof = false; /* It might have been set by find_next_block */
-       return p->type;
-      }
+      return p->type;
   
   return ct_none;
 }
@@ -233,7 +230,10 @@ open_compressed_archive ()
 
   /* FD is not needed any more */
   rmtclose (archive);
-  
+
+  hit_eof = false; /* It might have been set by find_next_block in
+                     check_compressed_archive */
+
   /* Open compressed archive */
   use_compress_program_option = compress_program (type);
   child_pid = sys_child_open_for_uncompress ();
This page took 0.027678 seconds and 4 git commands to generate.