mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[bit-set] Minor setting length on allocation failure
This commit is contained in:
1 parent
d8509061e6
commit
45fc919a10
1 file changed
+1
-1
+1
-1
@@ -90,7 +90,7 @@ struct hb_bit_set_t
|
||||
if (unlikely (!successful)) return false;
|
||||
if (unlikely (!pages.resize (count, clear, exact_size) || !page_map.resize (count, clear, exact_size)))
|
||||
{
|
||||
pages.resize (page_map.length);
|
||||
pages.resize (page_map.length, clear, exact_size);
|
||||
successful = false;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user