瀏覽代碼

(tar_sparse_init): Fix recent bugfixes: Initialize dumped_size to 0.

Sergey Poznyakoff 20 年之前
父節點
當前提交
37d2462d7c
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/sparse.c

+ 1 - 0
src/sparse.c

@@ -102,6 +102,7 @@ tar_sparse_member_p (struct tar_sparse_file *file)
 static bool
 tar_sparse_init (struct tar_sparse_file *file)
 {
+  file->dumped_size = 0;
   if (file->optab->init)
     return file->optab->init (file);
   return true;