]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Wed, 8 Apr 2015 11:56:05 +0000 (11:56 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Wed, 8 Apr 2015 11:56:05 +0000 (11:56 +0000)
MagickCore/draw.c

index deeb8c09d382ee5c464594f8869349da8b7070f8..dbc082eca028174a8b9b512080d40dacee10b7c3 100644 (file)
@@ -5254,10 +5254,10 @@ static size_t TracePath(PrimitiveInfo *primitive_info,const char *path)
     y;
 
   PointInfo
-    end,
-    points[4],
-    point,
-    start;
+    end = {0.0, 0.0},
+    points[4] = { {0.0,0.0}, {0.0,0.0}, {0.0,0.0}, {0.0,0.0} },
+    point = {0.0, 0.0},
+    start = {0.0, 0.0};
 
   PrimitiveType
     primitive_type;
@@ -5273,15 +5273,8 @@ static size_t TracePath(PrimitiveInfo *primitive_info,const char *path)
     z_count;
 
   attribute=0;
-  end.x=0.0;
-  end.y=0.0;
-  point.x=0.0;
-  point.y=0.0;
-  start.x=0.0;
-  start.y=0.0;
   number_coordinates=0;
   z_count=0;
-  (void) ResetMagickMemory(points,0,sizeof(*points));
   primitive_type=primitive_info->primitive;
   q=primitive_info;
   for (p=path; *p != '\0'; )