From 385e436692e94588fc4cb3a7afbeb862035db09b Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 7 Jun 2019 10:44:53 -0700 Subject: [PATCH] Minor, fix gcc maybe-uninitialized complain I guess all of its field will be initialized anyway here but lets make it more defensive --- src/hb-ot-glyf-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-glyf-table.hh b/src/hb-ot-glyf-table.hh index 1ac9f6ba2..76efdc9b8 100644 --- a/src/hb-ot-glyf-table.hh +++ b/src/hb-ot-glyf-table.hh @@ -180,7 +180,7 @@ struct glyf + hb_range (plan->num_output_glyphs ()) | hb_map ([&] (hb_codepoint_t new_gid) { - SubsetGlyph subset_glyph; + SubsetGlyph subset_glyph = {0}; subset_glyph.new_gid = new_gid; // should never fail: all old gids should be mapped