From: Matthew Fernandez Date: Sat, 4 Sep 2021 16:24:19 +0000 (-0700) Subject: chkPos: remove strcmp micro-optimization X-Git-Tag: 2.49.1~32^2~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e8f5139125705b50392eb431e5bb57580bb8ee7a;p=graphviz chkPos: remove strcmp micro-optimization --- diff --git a/lib/fdpgen/layout.c b/lib/fdpgen/layout.c index 78b44ca33..2814a9fcd 100644 --- a/lib/fdpgen/layout.c +++ b/lib/fdpgen/layout.c @@ -345,7 +345,7 @@ static void chkPos(graph_t* g, node_t* n, layout_info* infop, boxf* bbp) if (g != infop->rootg) { parent =agparent(g); pp = agxget(parent, G_coord); - if (pp == p || !strcmp(p, pp)) + if (!strcmp(p, pp)) return; } c = '\0';