Remove NULL check for variable that's guaranteed to be set
authorJonathan Dieter <jdieter@gmail.com>
Fri, 14 Sep 2018 15:10:17 +0000 (16:10 +0100)
committerJonathan Dieter <jdieter@gmail.com>
Fri, 14 Sep 2018 15:10:17 +0000 (16:10 +0100)
(Coverity ID: 320285)

Signed-off-by: Jonathan Dieter <jdieter@gmail.com>
src/lib/dl/multipart.c

index a3e21ea8516b3f9c3d74667d524f3fa6dbf82810..5543f0700f135c474d96e74c94234a8a70a0c650 100644 (file)
@@ -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;
 }