summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Holbert <dholbert@cs.stanford.edu>2024-04-25 16:44:00 -0700
committerDaniel Holbert <dholbert@cs.stanford.edu>2024-04-25 16:44:00 -0700
commit5223f0c93296e2b589fd705746d8151584855db0 (patch)
treef1c3f157d99be8c09335cd061c95374b39ef74e9
parentb3d578ec2ff97450cccdf9275c503fc0afa7cc80 (diff)
Switch to calloc in _cairo_cff_font_fallback_create
This makes this function more consistent with _cairo_cff_font_create, the other function in this file that allocates fonts.
-rw-r--r--src/cairo-cff-subset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-cff-subset.c b/src/cairo-cff-subset.c
index b1c665daa..fd74d2ddc 100644
--- a/src/cairo-cff-subset.c
+++ b/src/cairo-cff-subset.c
@@ -3160,7 +3160,7 @@ _cairo_cff_font_fallback_create (cairo_scaled_font_subset_t *scaled_font_subset
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);