mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 00:38:06 +02:00
surface-wrapper: Fix use of uninitialised variable
Introduced recently in a30a7402f7,
==32234== Conditional jump or move depends on uninitialised value(s)
==32234== at 0x6BCA326: _cairo_surface_wrapper_needs_device_transform (cairo-surface-wrapper.c:549)
==32234== by 0x6BCB47D: _cairo_surface_wrapper_set_inverse_transform (cairo-surface-wrapper.c:579)
==32234== by 0x6BCB55A: _cairo_surface_wrapper_init (cairo-surface-wrapper.c:621)
==32234== by 0x6BB87A6: _cairo_recording_surface_replay_internal (cairo-recording-surface.c:854)
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
7f77e2f36a
commit
926287aeea
1 changed files with 2 additions and 2 deletions
|
|
@ -618,10 +618,10 @@ void
|
|||
_cairo_surface_wrapper_init (cairo_surface_wrapper_t *wrapper,
|
||||
cairo_surface_t *target)
|
||||
{
|
||||
_cairo_surface_wrapper_set_inverse_transform (wrapper, NULL);
|
||||
|
||||
wrapper->target = cairo_surface_reference (target);
|
||||
cairo_matrix_init_identity (&wrapper->transform);
|
||||
wrapper->has_extents = FALSE;
|
||||
|
||||
wrapper->needs_transform =
|
||||
! _cairo_matrix_is_identity (&wrapper->target->device_transform);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue