From: cristy Date: Tue, 14 Jan 2014 16:37:23 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2881 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15cace97d64d85780dcedac9c8adef540787dbea;p=imagemagick --- diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 224c206f0..56649cad8 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -549,7 +549,8 @@ static PolygonInfo *ConvertPathToPolygon( next_direction=((path_info[i].point.y > point.y) || ((path_info[i].point.y == point.y) && (path_info[i].point.x > point.x))) ? 1 : -1; - if ((direction != 0) && (direction != next_direction)) + if ((points != (PointInfo *) NULL) && (direction != 0) && + (direction != next_direction)) { /* New edge.