summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/bitmap.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source3/lib/bitmap.c b/source3/lib/bitmap.c
index 09389b8e48..70c21c456a 100644
--- a/source3/lib/bitmap.c
+++ b/source3/lib/bitmap.c
@@ -72,13 +72,10 @@ struct bitmap *bitmap_talloc(TALLOC_CTX *mem_ctx, int n)
if (!bm) return NULL;
bm->n = n;
- bm->b = TALLOC_ARRAY(bm, uint32, (n+31)/32);
+ bm->b = TALLOC_ZERO_ARRAY(bm, uint32, (n+31)/32);
if (!bm->b) {
return NULL;
}
-
- memset(bm->b, 0, sizeof(uint32)*((n+31)/32));
-
return bm;
}