From: Alasdair Kergon Date: Mon, 19 Apr 2010 21:10:20 +0000 (+0000) Subject: fix last commit X-Git-Tag: old-v2_02_64~51 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=be29e5ab626f71581050a0825483fde01a424b97;p=lvm2.git fix last commit --- diff --git a/WHATS_NEW_DM b/WHATS_NEW_DM index 5f22b63da..ee3e69852 100644 --- a/WHATS_NEW_DM +++ b/WHATS_NEW_DM @@ -1,5 +1,6 @@ Version 1.02.47 - ================================= + Simplify dm_bitset_create. Speed up dm_bit_get_next with ffs(). Version 1.02.46 - 14th April 2010 diff --git a/libdm/datastruct/bitset.c b/libdm/datastruct/bitset.c index e8bec2ab7..bb16adda6 100644 --- a/libdm/datastruct/bitset.c +++ b/libdm/datastruct/bitset.c @@ -27,7 +27,7 @@ dm_bitset_t dm_bitset_create(struct dm_pool *mem, unsigned num_bits) if (mem) bs = dm_pool_zalloc(mem, size); else if ((bs = dm_malloc(size))) - memset(mem, 0, size); + memset(bs, 0, size); if (!bs) return NULL;