From be29e5ab626f71581050a0825483fde01a424b97 Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Mon, 19 Apr 2010 21:10:20 +0000 Subject: [PATCH] fix last commit --- WHATS_NEW_DM | 1 + libdm/datastruct/bitset.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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; -- 2.43.5