From: Matthew Fernandez Date: Sat, 14 Jan 2023 04:40:49 +0000 (-0800) Subject: tclpkg remove_poly: remove shadowing of 'polyid' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=997743c2537fa96654524be7c51bf917347e47f4;p=graphviz tclpkg remove_poly: remove shadowing of 'polyid' --- diff --git a/tclpkg/tclpathplan/tclpathplan.c b/tclpkg/tclpathplan/tclpathplan.c index 448a4eec7..946f4c5c7 100644 --- a/tclpkg/tclpathplan/tclpathplan.c +++ b/tclpkg/tclpathplan/tclpathplan.c @@ -307,12 +307,12 @@ static point scale(point c, point p, double gain) return q; } -static int remove_poly(vgpane_t * vgp, int polyid) +static int remove_poly(vgpane_t * vgp, int id) { int i, j; for (i = 0; i < vgp->Npoly; i++) { - if (vgp->poly[i].id == polyid) { + if (vgp->poly[i].id == id) { free(vgp->poly[i].boundary.ps); for (j = i++; i < vgp->Npoly; i++, j++) { vgp->poly[j] = vgp->poly[i];