git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed5a65d
)
s3: Use TALLOC_ZERO_ARRAY in bitmap_talloc
author
Volker Lendecke
<vl@samba.org>
Sun, 28 Mar 2010 12:03:31 +0000
(14:03 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 28 Mar 2010 13:25:16 +0000
(15:25 +0200)
source3/lib/bitmap.c
patch
|
blob
|
history
diff --git
a/source3/lib/bitmap.c
b/source3/lib/bitmap.c
index 09389b8e486d36152d3a11620d060a324ab3814c..70c21c456a483a0f6a140920b93e23349901a91e 100644
(file)
--- 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;
}