(sparse_scan_file): Fix another bug, introduced yesterday: Initialize

archive_file_size to 0. The variable keeps size of the file *as stored
in the archive*, not the size reported by stat.
This commit is contained in:
Sergey Poznyakoff
2005-06-23 09:10:28 +00:00
parent c877b48d68
commit 225e690142

View File

@@ -217,6 +217,8 @@ sparse_scan_file (struct tar_sparse_file *file)
if (!lseek_or_error (file, 0))
return false;
st->archive_file_size = 0;
if (!tar_sparse_scan (file, scan_begin, NULL))
return false;