fix crash in hb_map_t::clear()

in case called immediately after init()
pull/1597/head
Michiharu Ariza 6 years ago
parent a17ed8459e
commit eebc21c8de
  1. 1
      src/hb-map.hh

@ -170,6 +170,7 @@ struct hb_map_t
void clear ()
{
if (items)
memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
population = occupancy = 0;
}

Loading…
Cancel
Save