]> granicus.if.org Git - graphviz/commitdiff
lineTo: remove shadowing of global 'path' variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 19:27:57 +0000 (12:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 4 Sep 2021 03:28:41 +0000 (20:28 -0700)
lib/common/ellipse.c

index e84da0c37ef43fc3c7931ff08eacde953309a1d0..c813a83a1a19810f59bd8c4b94708d000c7c146a 100644 (file)
@@ -425,10 +425,10 @@ curveTo(Ppolyline_t * path, double x1, double y1,
     path->ps[path->pn++].y = y3;
 }
 
-static void lineTo(Ppolyline_t * path, double x, double y)
+static void lineTo(Ppolyline_t *polypath, double x, double y)
 {
-    pointf curp = path->ps[path->pn - 1];
-    curveTo(path, curp.x, curp.y, x, y, x, y);
+    pointf curp = polypath->ps[polypath->pn - 1];
+    curveTo(polypath, curp.x, curp.y, x, y, x, y);
 }
 
 static void endPath(Ppolyline_t * path)