tAvoid a potential min blk size of 0 - dedup - deduplicating backup program
(HTM) git clone git://git.z3bra.org/dedup.git
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit ec545e0de1c24732355d70545e75781d5702ba37
(DIR) parent ff3adddbd64ef8550fddd7d9c14f3e1c05e92ff1
(HTM) Author: sin <sin@2f30.org>
Date: Thu, 21 Feb 2019 21:10:26 +0000
Avoid a potential min blk size of 0
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/dedup.c b/dedup.c
t@@ -590,8 +590,8 @@ init(void)
VER_MAJ, VER_MIN, maj, min);
} else {
snaphdr.flags = (VER_MAJ << 8) | VER_MIN;
- xwrite(ifd, &snaphdr, sizeof(snaphdr));
snaphdr.st.min_blk_size = comp_size(BLKSIZE);
+ xwrite(ifd, &snaphdr, sizeof(snaphdr));
}
if (cache_nr_entries() != 0)