mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-28 16:50:19 +01:00
[cairo-traps] Typo caught by valgrind.
==3429== Conditional jump or move depends on uninitialised value(s) ==3429== at 0x4E3FB0F: _cairo_box_round_to_rectangle (cairo-fixed-private.h:196) ==3429== by 0x4E34B29: _cairo_clip_intersect_to_rectangle (cairo-clip.c:162) ==3429== by 0x4E31943: cairo_push_group_with_content (cairo.c:495) ==3429== by 0x403044: draw (clip-zero.c:48) ==3429== by 0x404221: cairo_test_expecting (cairo-test.c:377) ==3429== by 0x64701C3: (below main) (libc-start.c:222) Caused by setting extents->p2.y to zero twice.
This commit is contained in:
parent
10f6ef98f6
commit
db246f2fa2
1 changed files with 1 additions and 1 deletions
|
|
@ -570,7 +570,7 @@ _cairo_traps_extents (cairo_traps_t *traps, cairo_box_t *extents)
|
|||
{
|
||||
if (traps->num_traps == 0) {
|
||||
extents->p1.x = extents->p1.y = _cairo_fixed_from_int (0);
|
||||
extents->p2.y = extents->p2.y = _cairo_fixed_from_int (0);
|
||||
extents->p2.x = extents->p2.y = _cairo_fixed_from_int (0);
|
||||
} else
|
||||
*extents = traps->extents;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue