summaryrefslogtreecommitdiffstats
path: root/gfx/cairo/cff-font-creation.patch
blob: 1ee5398b0c0653c39f73ee116a6ba49c4a013162 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/gfx/cairo/cairo/src/cairo-cff-subset.c b/gfx/cairo/cairo/src/cairo-cff-subset.c
--- a/gfx/cairo/cairo/src/cairo-cff-subset.c
+++ b/gfx/cairo/cairo/src/cairo-cff-subset.c
@@ -3154,7 +3154,7 @@ static cairo_int_status_t
     cairo_status_t status;
     cairo_cff_font_t *font;
 
-    font = _cairo_malloc (sizeof (cairo_cff_font_t));
+    font = calloc (1, sizeof (cairo_cff_font_t));
     if (unlikely (font == NULL))
 	return _cairo_error (CAIRO_STATUS_NO_MEMORY);