iMove var decl to inner scope - dedup - deduplicating backup program Err bitreich.org 70 hgit clone git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ URL:git://bitreich.org/dedup/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/dedup/ bitreich.org 70 1Log /scm/dedup/log.gph bitreich.org 70 1Files /scm/dedup/files.gph bitreich.org 70 1Refs /scm/dedup/refs.gph bitreich.org 70 1Tags /scm/dedup/tag bitreich.org 70 1README /scm/dedup/file/README.gph bitreich.org 70 1LICENSE /scm/dedup/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit 20f65f4dab52f9b4432a8f69987a485852777d85 /scm/dedup/commit/20f65f4dab52f9b4432a8f69987a485852777d85.gph bitreich.org 70 1parent 5cc2cb4d8ed4f3866cc99a3c2e50e4f244f6f836 /scm/dedup/commit/5cc2cb4d8ed4f3866cc99a3c2e50e4f244f6f836.gph bitreich.org 70 hAuthor: sin URL:mailto:sin@2f30.org bitreich.org 70 iDate: Sun, 17 Feb 2019 11:26:40 +0000 Err bitreich.org 70 i Err bitreich.org 70 iMove var decl to inner scope Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M dedup.c | 4 ++-- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 2 insertions(+), 2 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/dedup.c b/dedup.c /scm/dedup/file/dedup.c.gph bitreich.org 70 i@@ -423,12 +423,12 @@ dedup(int fd, char *msg) Err bitreich.org 70 i } Err bitreich.org 70 i Err bitreich.org 70 i if (ent->nblks > 0) { Err bitreich.org 70 i- size_t size; Err bitreich.org 70 i- Err bitreich.org 70 i /* Calculate hash and add this entry to the index */ Err bitreich.org 70 i SHA256_Final(ent->md, &ctx); Err bitreich.org 70 i Err bitreich.org 70 i if (msg != NULL && msg[0] != '\0') { Err bitreich.org 70 i+ size_t size; Err bitreich.org 70 i+ Err bitreich.org 70 i size = strlen(msg) + 1; Err bitreich.org 70 i if (size > sizeof(ent->msg)) Err bitreich.org 70 i size = sizeof(ent->msg); Err bitreich.org 70 .