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;