aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2020-02-19 05:07:40 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-02-19 18:33:39 +0700
commit4960ee4511f6613b449fa3c77a2d188e122c90ce (patch)
tree268d2f8d0707b335c0d0042af730028be5201656
parentc866b326d3f7ff427328b7e8e7b7d4cb7a35e147 (diff)
bitvec: avoid redundant zero-initialization in bitvec_alloc()
All the fields of the structure are set explicitly anyway. Change-Id: I40c0322d5f2febd98bae6fbe0ec2132eda6fb35b
-rw-r--r--src/bitvec.c2
1 files changed, 1 insertions, 1 deletions
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;