summaryrefslogtreecommitdiff
path: root/mysys/my_bitmap.c
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2001-02-09 04:09:03 +0200
committermonty@donna.mysql.com <>2001-02-09 04:09:03 +0200
commitffe3029814e5d3b550e29ae42fc520774ae61284 (patch)
tree3d3e75a4f2cb34f720c02db3073127f517f902ea /mysys/my_bitmap.c
parent7e944dea9ab1c36bf1295aeb6043283cb0476ae0 (diff)
downloadmariadb-git-ffe3029814e5d3b550e29ae42fc520774ae61284.tar.gz
Fixed bug in bitmap handling
Diffstat (limited to 'mysys/my_bitmap.c')
-rw-r--r--mysys/my_bitmap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/my_bitmap.c b/mysys/my_bitmap.c
index b4990816b56..a80aafd5605 100644
--- a/mysys/my_bitmap.c
+++ b/mysys/my_bitmap.c
@@ -29,7 +29,8 @@
my_bool bitmap_init(MY_BITMAP *map, uint bitmap_size)
{
- if (!(map->bitmap=(uchar*) my_malloc((bitmap_size+7)/8,MYF(MY_WME))))
+ if (!(map->bitmap=(uchar*) my_malloc((bitmap_size+7)/8,
+ MYF(MY_WME | MY_ZEROFILL))))
return 1;
dbug_assert(bitmap_size != ~(uint) 0);
#ifdef THREAD