From: Sergey Poznyakoff Date: Tue, 21 Dec 2004 15:00:29 +0000 (+0000) Subject: Minor improvement: reset hit_eof in open_compressed_archive X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=76bbb5710fe1f3a5b9500eebf9b6746fb7d458fe;p=chaz%2Ftar Minor improvement: reset hit_eof in open_compressed_archive --- diff --git a/src/buffer.c b/src/buffer.c index 47e1be6..5c6412f 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -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 ();