Minor improvement: reset hit_eof in open_compressed_archive

This commit is contained in:
Sergey Poznyakoff
2004-12-21 15:00:29 +00:00
parent e8fbac5ec1
commit 76bbb5710f

View 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 ();