]> granicus.if.org Git - graphviz/commitdiff
fix bug in nextin, nextout.
authorellson <devnull@localhost>
Tue, 18 Oct 2005 21:11:52 +0000 (21:11 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 21:11:52 +0000 (21:11 +0000)
tclpkg/gv/gv.cpp

index 029c9b09ac44272c6bd2b940e51cbd4593b041e1..1d5f82de15efc898790dc6a539943304f9f108b0 100644 (file)
@@ -597,12 +597,13 @@ Agedge_t *firstout(Agraph_t *g)
 Agedge_t *nextout(Agraph_t *g, Agedge_t *e)
 {
     Agnode_t *n;
+    Agedge_t *ne;
 
     if (!g || !e)
        return NULL;
-    e = agnxtout(g, e);
-    if (e)
-       return (e);
+    ne = agnxtout(g, e);
+    if (ne)
+       return (ne);
     n = agnxtnode(g, e->tail);
     if (!n)
        return NULL;
@@ -695,12 +696,13 @@ Agedge_t *firstin(Agraph_t *g)
 Agedge_t *nextin(Agraph_t *g, Agedge_t *e)
 {
     Agnode_t *n;
+    Agedge_t *ne;
 
     if (!g || !e)
        return NULL;
-    e = agnxtin(g, e);
-    if (e)
-       return (e);
+    ne = agnxtin(g, e);
+    if (ne)
+       return (ne);
     n = agnxtnode(g, n);
     if (!n)
        return NULL;