Minor, fix gcc maybe-uninitialized complain
authorEbrahim Byagowi <ebrahim@gnu.org>
Fri, 7 Jun 2019 17:44:53 +0000 (10:44 -0700)
committerBehdad Esfahbod <behdad@behdad.org>
Fri, 7 Jun 2019 17:49:57 +0000 (10:49 -0700)
I guess all of its field will be initialized anyway here but lets make it more defensive

src/hb-ot-glyf-table.hh

index 1ac9f6b..76efdc9 100644 (file)
@@ -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