]> Dogcows Code - chaz/tar/commitdiff
(sparse_scan_file): Fix another bug, introduced yesterday: Initialize
authorSergey Poznyakoff <gray@gnu.org.ua>
Thu, 23 Jun 2005 09:10:28 +0000 (09:10 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Thu, 23 Jun 2005 09:10:28 +0000 (09:10 +0000)
archive_file_size to 0. The variable keeps size of the file *as stored
in the archive*, not the size reported by stat.

src/sparse.c

index d3f716492b894cd0134711e2de3b8b540d0f1550..1d18b20d78d269a9703b24476e3ab74499441f8b 100644 (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;
 
This page took 0.025337 seconds and 4 git commands to generate.