From: Emden Gansner Date: Mon, 5 Oct 2015 14:46:37 +0000 (-0400) Subject: Prevent warning message. X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~103 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=44394e0d0448f2c4663ad4e9843648123a5b2a2b;p=graphviz Prevent warning message. --- diff --git a/cmd/gvpr/lib/binduce b/cmd/gvpr/lib/binduce index 9e987c33e..a19fceba1 100644 --- a/cmd/gvpr/lib/binduce +++ b/cmd/gvpr/lib/binduce @@ -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],""))) {