From 3d359a497a35316a6ff9660cb21441e131eae120 Mon Sep 17 00:00:00 2001 From: Nicola Fontana Date: Sun, 1 Feb 2015 22:00:11 +0100 Subject: [PATCH] cpml: protect cpml_segment_offset from NULL segment --- src/cpml/cpml-segment.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cpml/cpml-segment.c b/src/cpml/cpml-segment.c index 402dba62..a6affb7f 100644 --- a/src/cpml/cpml-segment.c +++ b/src/cpml/cpml-segment.c @@ -386,6 +386,9 @@ cpml_segment_offset(CpmlSegment *segment, double offset) cairo_path_data_t org, *old_org; int first_cycle; + if (segment == NULL) + return; + cpml_primitive_from_segment(&primitive, segment); first_cycle = 1; -- 2.11.4.GIT