diff --git a/src/hb-vector.hh b/src/hb-vector.hh index 5eb02bc8e..0e01d010f 100644 --- a/src/hb-vector.hh +++ b/src/hb-vector.hh @@ -161,6 +161,7 @@ struct hb_vector_t alloc_exact (o.length); if (unlikely (in_error ())) return *this; + length = 0; copy_array (o.as_array ()); return *this;