From: Matthew Fernandez Date: Wed, 21 Dec 2022 05:26:37 +0000 (-0800) Subject: smyrna close_graph: remove shadowing of 'view' global X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=45fb30e6b53623bdae47fe803cd781f45c8a6eb7;p=graphviz smyrna close_graph: remove shadowing of 'view' global --- diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 961f2722a..666c8fab7 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -70,10 +70,10 @@ static void *get_glut_font(int ind) } -void close_graph(ViewInfo *view) { - if (view->activeGraph < 0) +void close_graph(ViewInfo *vi) { + if (vi->activeGraph < 0) return; - clear_viewport(view); + clear_viewport(vi); } char *get_attribute_value(char *attr, ViewInfo * view, Agraph_t * g)