]> granicus.if.org Git - graphviz/commitdiff
Prevent warning message.
authorEmden Gansner <emdenrg@google.com>
Mon, 5 Oct 2015 14:46:37 +0000 (10:46 -0400)
committerEmden Gansner <emdenrg@google.com>
Mon, 5 Oct 2015 14:46:37 +0000 (10:46 -0400)
cmd/gvpr/lib/binduce

index 9e987c33e45bc3ac3a79224f924c82948aff5c15..a19fceba117dcd114db9fc7e04c6403816cc4e4f 100644 (file)
@@ -23,7 +23,7 @@ N[aget($,aname)==value] {
     for (e = fstedge($); e; e = nxtedge(e, $))
       nbrs[cnt++] = opp(e,$);
     for (i = 0; i < cnt-1; i++) {
-      if (e = isEdge(nbrs[i],nbrs[i+1],"")) {
+      if ((e = isEdge(nbrs[i],nbrs[i+1],"")) != NULL) {
         wt[e] += 1;
       }
       else if ($G.directed && (e = isEdge(nbrs[i+1],nbrs[i],""))) {