]> granicus.if.org Git - graphviz/commitdiff
moveTo: remove shadowing of global 'path' variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Aug 2021 19:27:05 +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 f4e3d510ea97f44098aa1ec52c246e216dbfca74..e84da0c37ef43fc3c7931ff08eacde953309a1d0 100644 (file)
@@ -400,13 +400,13 @@ estimateError(ellipse_t * ep, int degree, double etaA, double etaB)
  */
 static int bufsize;
 
-static void moveTo(Ppolyline_t * path, double x, double y)
+static void moveTo(Ppolyline_t *polypath, double x, double y)
 {
     bufsize = 100;
-    path->ps = N_NEW(bufsize, pointf);
-    path->ps[0].x = x;
-    path->ps[0].y = y;
-    path->pn = 1;
+    polypath->ps = N_NEW(bufsize, pointf);
+    polypath->ps[0].x = x;
+    polypath->ps[0].y = y;
+    polypath->pn = 1;
 }
 
 static void