diff options
author | Emmanuele Bassi <ebassi@gmail.com> | 2023-11-06 17:10:07 +0000 |
---|---|---|
committer | Emmanuele Bassi <ebassi@gmail.com> | 2023-11-06 17:10:07 +0000 |
commit | f9358f26b851132248806da105341bbab415ba46 (patch) | |
tree | 78e0b60f66aa24f7aa4ef86a4c629ddfc1566d81 | |
parent | 36193ec952e68dbcf81aca408f5e1c3179135180 (diff) | |
parent | c84a13c576e25ee22b5441ac41338323822ba361 (diff) |
Merge branch 'alloc-size' into 'master'
cairo-ps-surface: fix -Walloc-size
See merge request cairo/cairo!525
-rw-r--r-- | src/cairo-ps-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index 381b4cf75..ad52918c2 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -3521,7 +3521,7 @@ _cairo_ps_surface_use_form (cairo_ps_surface_t *surface, unique_id_length = source_key.unique_id_length; memcpy (unique_id, source_key.unique_id, unique_id_length); - source_entry = calloc (sizeof (cairo_ps_form_t), 1); + source_entry = calloc (1, sizeof (cairo_ps_form_t)); if (source_entry == NULL) { status = _cairo_error (CAIRO_STATUS_NO_MEMORY); goto fail; |