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