[vector] Always 0-fill new items
This commit is contained in:
parent
a7e1b4a3b2
commit
c4d0d11c55
|
@ -716,6 +716,9 @@ struct hb_vector_t
|
|||
if (!alloc (size))
|
||||
return false;
|
||||
|
||||
if (size > len)
|
||||
memset (arrayZ + len, 0, (size - len) * sizeof (*arrayZ));
|
||||
|
||||
len = size;
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue