From 4960ee4511f6613b449fa3c77a2d188e122c90ce Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 19 Feb 2020 05:07:40 +0700 Subject: bitvec: avoid redundant zero-initialization in bitvec_alloc() All the fields of the structure are set explicitly anyway. Change-Id: I40c0322d5f2febd98bae6fbe0ec2132eda6fb35b --- src/bitvec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitvec.c b/src/bitvec.c index 2219b71d..d7f32fbd 100644 --- a/src/bitvec.c +++ b/src/bitvec.c @@ -400,7 +400,7 @@ int bitvec_set_bytes(struct bitvec *bv, const uint8_t *bytes, unsigned int count * \return pointer to allocated vector; NULL in case of error */ struct bitvec *bitvec_alloc(unsigned int size, TALLOC_CTX *ctx) { - struct bitvec *bv = talloc_zero(ctx, struct bitvec); + struct bitvec *bv = talloc(ctx, struct bitvec); if (!bv) return NULL; -- cgit v1.2.3