mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
Fixed bug in bitmap handling
mysys/my_bitmap.c: Clear bitmap array
This commit is contained in:
parent
5ccffb286d
commit
a00ef17fdb
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue