bitvec: avoid redundant zero-initialization in bitvec_alloc()

All the fields of the structure are set explicitly anyway.

Change-Id: I40c0322d5f2febd98bae6fbe0ec2132eda6fb35b
This commit is contained in:
Vadim Yanitskiy 2020-02-19 05:07:40 +07:00
parent c866b326d3
commit 4960ee4511
1 changed files with 1 additions and 1 deletions

View File

@ -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;