Move var to inner scope - dedup - deduplicating backup program
HTML git clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit 2acc9dab8d36a9aff29c8c786e8e1427573a231c
DIR parent 1be84dc78d331d3e1c827c9a895a131f617f36cb
HTML Author: sin <sin@2f30.org>
Date: Sun, 10 Mar 2019 12:03:00 +0000
Move var to inner scope
Diffstat:
M dedup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/dedup.c b/dedup.c
@@ -315,7 +315,6 @@ extract(struct snapshot *snap, void *arg)
static int
check_snap(struct snapshot *snap, void *arg)
{
- uint8_t md[MDSIZE];
uint8_t *buf;
int *ret = arg;
uint64_t i;
@@ -328,6 +327,7 @@ check_snap(struct snapshot *snap, void *arg)
buf = alloc_buf(compr_size(BLKSIZE_MAX));
for (i = 0; i < snap->nr_blk_descs; i++) {
+ uint8_t md[MDSIZE];
blake2b_state ctx;
struct blk_desc *blk_desc;