summaryrefslogtreecommitdiff
path: root/src/cairo-path-fixed.c
diff options
context:
space:
mode:
authorUli Schlachter <psychon@znc.in>2011-09-16 18:00:21 +0200
committerUli Schlachter <psychon@znc.in>2011-09-16 18:00:21 +0200
commit84d1eac61fd8b5515711bd23b2ac886efd86a42f (patch)
treed7de8e5ff8087b9809a84f4caabdc53be12eadfd /src/cairo-path-fixed.c
parenta1be14693bb53f1818be2dee90f642143002d6d5 (diff)
path: Fix a minor oversight in 1ce5d4707cf26061
The plan was "path: Skip calls to zero-length memcpy". However, this skipped calls if the buffer was still empty, which means that it skipped all calls. Fixes: Half the test suite, lots of assertion failures Signed-off-by: Uli Schlachter <psychon@znc.in>
Diffstat (limited to 'src/cairo-path-fixed.c')
-rw-r--r--src/cairo-path-fixed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-path-fixed.c b/src/cairo-path-fixed.c
index f4410b35..1e9a7594 100644
--- a/src/cairo-path-fixed.c
+++ b/src/cairo-path-fixed.c
@@ -808,7 +808,7 @@ _cairo_path_buf_add_points (cairo_path_buf_t *buf,
const cairo_point_t *points,
int num_points)
{
- if (buf->num_points == 0)
+ if (num_points == 0)
return;
memcpy (buf->points + buf->num_points,