Fixed bug in bitmap handling

mysys/my_bitmap.c:
  Clear bitmap array
This commit is contained in:
unknown 2001-02-09 04:09:03 +02:00
parent 5ccffb286d
commit a00ef17fdb

View file

@ -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