mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-08 21:10:30 +01:00
pdf: Fix compiler warning for use of unitialised variable along error path
cairo-pdf-surface.c: In function '_cairo_pdf_surface_add_source_surface.isra.20': cairo-pdf-surface.c:1461:10: warning: 'unique_id' may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
80641f4adc
commit
f39eef8524
1 changed files with 1 additions and 1 deletions
|
|
@ -1321,7 +1321,7 @@ _cairo_pdf_surface_add_source_surface (cairo_pdf_surface_t *surface,
|
|||
cairo_pdf_source_surface_entry_t *surface_entry;
|
||||
cairo_int_status_t status;
|
||||
cairo_bool_t interpolate;
|
||||
unsigned char *unique_id;
|
||||
unsigned char *unique_id = NULL;
|
||||
unsigned long unique_id_length = 0;
|
||||
cairo_image_surface_t *image;
|
||||
void *image_extra;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue