mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
fix crash in hb_map_t::clear()
in case called immediately after init()
This commit is contained in:
1 parent
a17ed8459e
commit
eebc21c8de
1 file changed
+2
-1
+2
-1
@@ -170,7 +170,8 @@ struct hb_map_t
|
||||
|
||||
void clear ()
|
||||
{
|
||||
memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
|
||||
if (items)
|
||||
memset (items, 0xFF, ((size_t) mask + 1) * sizeof (item_t));
|
||||
population = occupancy = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user