summaryrefslogtreecommitdiff
path: root/src/cairo-traps.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2008-01-10 21:32:47 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2008-01-10 21:32:47 +0000
commitdb246f2fa22920a996a32f11233228e9af1d1abb (patch)
tree60abf9519235a50af20eba1e9bd8a09dbfc98a07 /src/cairo-traps.c
parent10f6ef98f645d9f9f54d88fcf18683771258d36f (diff)
downloadcairo-db246f2fa22920a996a32f11233228e9af1d1abb.tar.gz
[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.
Diffstat (limited to 'src/cairo-traps.c')
-rw-r--r--src/cairo-traps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-traps.c b/src/cairo-traps.c
index 41e18e978..c3d4329f9 100644
--- a/src/cairo-traps.c
+++ b/src/cairo-traps.c
@@ -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;
}