]> granicus.if.org Git - graphviz/commitdiff
dotgen make_flat_adj_edges: remove shadowing of 'n' variable
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Thu, 8 Sep 2022 00:27:49 +0000 (17:27 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sun, 29 Jan 2023 16:24:43 +0000 (08:24 -0800)
lib/dotgen/dotsplines.c

index deac453381d00e6bc06dce6c812593d961055944..68b098bef5966390f974edf1f9952dab0529369c 100644 (file)
@@ -1263,10 +1263,9 @@ make_flat_adj_edges(graph_t* g, edge_t** edges, int ind, int cnt, edge_t* e0,
     rightx = ND_coord(hn).x;
     leftx = ND_coord(tn).x;
     if (GD_flip(g)) {
-        node_t* n;
-        n = tn;
+        node_t *tmp = tn;
         tn = hn;
-        hn = n;
+        hn = tmp;
     }
     auxt = cloneNode(subg, tn);
     auxh = cloneNode(auxg, hn);