fix crash in hb_map_t::clear()
in case called immediately after init()
This commit is contained in:
parent
a17ed8459e
commit
eebc21c8de
|
@ -170,6 +170,7 @@ struct hb_map_t
|
||||||
|
|
||||||
void clear ()
|
void clear ()
|
||||||
{
|
{
|
||||||
|
if (items)
|
||||||
memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
|
memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
|
||||||
population = occupancy = 0;
|
population = occupancy = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue