Commit 1babec2d authored by Nils Goroll's avatar Nils Goroll

polish: avoid duplicate zero initialization

ALLOC_OBJ calls memset(0) already
parent 55995ab0
......@@ -199,15 +199,12 @@ vmod_blob__init(VRT_CTX, struct vmod_blob_blob **blobp, const char *vcl_name,
ALLOC_OBJ(b, VMOD_BLOB_MAGIC);
AN(b);
*blobp = b;
b->blob.free = NULL;
AZ(pthread_mutex_init(&b->lock, NULL));
len = decode_l(dec, strings);
if (len == 0) {
b->blob.len = 0;
b->blob.priv = NULL;
if (len == 0)
return;
}
assert(len > 0);
b->blob.priv = malloc(len);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment