From: Jonathan Dieter Date: Fri, 14 Sep 2018 15:10:17 +0000 (+0100) Subject: Remove NULL check for variable that's guaranteed to be set X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~109 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a8ae0f528df86a00b867d7c3de8370ee91a2cbf0;p=zchunk.git Remove NULL check for variable that's guaranteed to be set (Coverity ID: 320285) Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/dl/multipart.c b/src/lib/dl/multipart.c index a3e21ea..5543f07 100644 --- a/src/lib/dl/multipart.c +++ b/src/lib/dl/multipart.c @@ -235,7 +235,6 @@ size_t multipart_get_boundary(zckDL *dl, char *b, size_t size) { zck_log(ZCK_LOG_DEBUG, "Multipart boundary: %s", boundary); dl->boundary = boundary; } - if(buf) - free(buf); + free(buf); return size; }