[cairo] [PATCH] type1-subset: Quell warning about uninitialized array_start
Bryce W. Harrington
b.harrington at samsung.com
Wed Jun 19 20:18:45 PDT 2013
Since we explicitly set font->subset_subrs to false, there's no way the
warned code will be executed, but perhaps the compiler is confused by
the goto jump.
Signed-off-by: Bryce Harrington <b.harrington at samsung.com>
---
src/cairo-type1-subset.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/cairo-type1-subset.c b/src/cairo-type1-subset.c
index 06d9e71..e2c799d 100644
--- a/src/cairo-type1-subset.c
+++ b/src/cairo-type1-subset.c
@@ -1306,6 +1306,7 @@ cairo_type1_font_subset_write_private_dict (cairo_type1_font_subset_t *font,
if (subrs == NULL) {
font->subset_subrs = FALSE;
p = font->cleartext;
+ array_start = NULL;
goto skip_subrs;
}
--
1.7.9.5
--
Bryce Harrington
Senior Open Source Developer - b.harrington at samsung.com
Open Source Group - Samsung Research America
More information about the cairo
mailing list