From: Matthew Fernandez Date: Sat, 14 Jan 2023 04:41:25 +0000 (-0800) Subject: tclpkg insert_poly: remove shadowing of 'polyid' X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2da6cfe694a25801e062fb3aeefb7504263a1e89;p=graphviz tclpkg insert_poly: remove shadowing of 'polyid' --- diff --git a/tclpkg/tclpathplan/tclpathplan.c b/tclpkg/tclpathplan/tclpathplan.c index 946f4c5c7..34a3aa522 100644 --- a/tclpkg/tclpathplan/tclpathplan.c +++ b/tclpkg/tclpathplan/tclpathplan.c @@ -326,13 +326,13 @@ static int remove_poly(vgpane_t * vgp, int id) } static int -insert_poly(Tcl_Interp * interp, vgpane_t * vgp, int polyid, char *vargv[], +insert_poly(Tcl_Interp * interp, vgpane_t * vgp, int id, char *vargv[], int vargc) { poly *np; int i, result; - np = allocpoly(vgp, polyid, vargc); + np = allocpoly(vgp, id, vargc); for (i = 0; i < vargc; i += 2) { result = scanpoint(interp, &vargv[i],