diff --git a/src/hb-ot-color-colr-table.hh b/src/hb-ot-color-colr-table.hh index 7d79d575a..9354f533a 100644 --- a/src/hb-ot-color-colr-table.hh +++ b/src/hb-ot-color-colr-table.hh @@ -214,10 +214,9 @@ struct COLR if (unlikely (!old_record)) return hb_pair_t (false, Null (BaseGlyphRecord)); - BaseGlyphRecord new_record; + BaseGlyphRecord new_record = {0}; new_record.glyphId = new_gid; new_record.numLayers = old_record->numLayers; - new_record.firstLayerIdx = 0; // Updated during serialization. return hb_pair_t (true, new_record); }) | hb_filter (hb_first)