tNo need to set csize to 0 when the call fails - 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 c86adacd4c9ec47d68823fbb768ec3fc7e5c23c0
(DIR) parent 7102fc953fa622740207fbe9bce945d33aa9105e
(HTM) 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
t@@ -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;
}