diff options
author | monty@donna.mysql.com <> | 2001-02-09 04:09:03 +0200 |
---|---|---|
committer | monty@donna.mysql.com <> | 2001-02-09 04:09:03 +0200 |
commit | ffe3029814e5d3b550e29ae42fc520774ae61284 (patch) | |
tree | 3d3e75a4f2cb34f720c02db3073127f517f902ea /mysys/my_bitmap.c | |
parent | 7e944dea9ab1c36bf1295aeb6043283cb0476ae0 (diff) | |
download | mariadb-git-ffe3029814e5d3b550e29ae42fc520774ae61284.tar.gz |
Fixed bug in bitmap handling
Diffstat (limited to 'mysys/my_bitmap.c')
-rw-r--r-- | mysys/my_bitmap.c | 3 |
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 |