diff --git a/src/hb-private.hh b/src/hb-private.hh index 413becd41..b13d9cd6f 100644 --- a/src/hb-private.hh +++ b/src/hb-private.hh @@ -240,6 +240,8 @@ struct hb_prealloced_array_t { Type *array; Type static_array[StaticSize]; + hb_prealloced_array_t (void) { memset (this, 0, sizeof (*this)); } + inline Type& operator [] (unsigned int i) { return array[i]; } inline const Type& operator [] (unsigned int i) const { return array[i]; }