]> granicus.if.org Git - graphviz/commitdiff
circogen position: remove shadowing of 'path' global
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 28 Dec 2022 22:00:14 +0000 (14:00 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 1 Jan 2023 00:31:40 +0000 (16:31 -0800)
lib/circogen/circpos.c

index 828c73bc8541858e70b8e1d11fe18446f1176b52..febc2e60a7ee7a36efcc1877bd88411132416512 100644 (file)
@@ -326,7 +326,7 @@ positionChildren(posinfo_t *pi, posstate *stp, int length, double min_dist)
  * Finally, positionChildren is called to do the actual positioning.
  * If length is 1, keeps track of minimum and maximum child angle.
  */
-static double position(int childCount, int length, nodelist_t *path,
+static double position(int childCount, int length, nodelist_t *nodepath,
         block_t * sn, double min_dist)
 {
     nodelistitem_t *item;
@@ -350,7 +350,7 @@ static double position(int childCount, int length, nodelist_t *path,
     state.firstAngle = -1;
     state.lastAngle = -1;
 
-    for (item = path->first; item; item = item->next) {
+    for (item = nodepath->first; item; item = item->next) {
        n = item->curr;
 
        theta = counter * state.nodeAngle;