提交 946b5344 编写于 作者: B Behdad Esfahbod

[sbix] Fix uninitialized variables

上级 01c7d53f
......@@ -246,15 +246,16 @@ struct sbix
if (likely (sbix_len == 0))
return false;
int x_offset, y_offset;
int x_offset = 0, y_offset = 0;
hb_blob_t *blob = reference_blob_for_glyph (font, glyph,
HB_TAG ('p','n','g',' '),
&x_offset, &y_offset);
const PNGHeader &png = *blob->as<PNGHeader>();
if (unlikely (blob->length < sizeof (PNGHeader)))
return false;
const PNGHeader &png = *blob->as<PNGHeader>();
extents->x_bearing = x_offset;
extents->y_bearing = y_offset;
extents->width = png.IHDR.width;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册