No need to set csize to 0 when the call fails - 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 c86adacd4c9ec47d68823fbb768ec3fc7e5c23c0 DIR parent 7102fc953fa622740207fbe9bce945d33aa9105e HTML Author: sin <sin@2f30.org> Date: Fri, 17 May 2019 16:41:53 +0300 No need to set csize to 0 when the call fails The caller should not inspect the argument if the call fails. Diffstat: M chunker.c | 1 - 1 file changed, 0 insertions(+), 1 deletion(-) --- DIR diff --git a/chunker.c b/chunker.c @@ -174,7 +174,6 @@ cget(struct chunker *c, size_t *csize) unsigned char *bp; if (c->rp == c->wp) { - *csize = 0; seterr("chunker underflow"); return NULL; }