summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-03-28 14:03:31 +0200
committerVolker Lendecke <vl@samba.org>2010-03-28 15:25:16 +0200
commit8a43679cea769b3f568def53006690ef23c083c6 (patch)
tree2efd45ed9540ba92f58d8897b931a5b8e6cc52a1 /source3
parented5a65d7a0f6a3e9697184b4e32081a77b65f78b (diff)
downloadsamba-8a43679cea769b3f568def53006690ef23c083c6.tar.gz
samba-8a43679cea769b3f568def53006690ef23c083c6.tar.bz2
samba-8a43679cea769b3f568def53006690ef23c083c6.zip
s3: Use TALLOC_ZERO_ARRAY in bitmap_talloc
Diffstat (limited to 'source3')
-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;
}