From: Matthew Fernandez Date: Wed, 21 Dec 2022 05:27:05 +0000 (-0800) Subject: smyrna get_attribute_value: remove shadowing of 'view' global X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=772d3e75fa53a0232c72281f4e631be08c192e16;p=graphviz smyrna get_attribute_value: remove shadowing of 'view' global --- diff --git a/cmd/smyrna/viewport.c b/cmd/smyrna/viewport.c index 666c8fab7..920fb103c 100644 --- a/cmd/smyrna/viewport.c +++ b/cmd/smyrna/viewport.c @@ -76,12 +76,11 @@ void close_graph(ViewInfo *vi) { clear_viewport(vi); } -char *get_attribute_value(char *attr, ViewInfo * view, Agraph_t * g) -{ +char *get_attribute_value(char *attr, ViewInfo *vi, Agraph_t *g) { char *buf; buf = agget(g, attr); if (!buf || *buf == '\0') - buf = agget(view->systemGraphs.def_attrs, attr); + buf = agget(vi->systemGraphs.def_attrs, attr); return buf; }