mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixed bug in bitmap handling
mysys/my_bitmap.c: Clear bitmap array
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user