From: erg Date: Thu, 8 Nov 2007 21:40:52 +0000 (+0000) Subject: Fix bug in agsafeset() X-Git-Tag: LAST_LIBGRAPH~32^2~5050 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f793b8209caffa3509c69704ee618c8f073400c3;p=graphviz Fix bug in agsafeset() --- diff --git a/lib/cgraph/attr.c b/lib/cgraph/attr.c index 3be23ca4d..cb870da45 100644 --- a/lib/cgraph/attr.c +++ b/lib/cgraph/attr.c @@ -440,8 +440,8 @@ int agsafeset(void* obj, char* name, char* value, char* def) { Agsym_t* a; - a = agattr(agraphof(obj),AGTYPE(obj),value,0); - if (!a) a = agattr(agraphof(obj),AGTYPE(obj),value,def); + a = agattr(agraphof(obj),AGTYPE(obj),name,0); + if (!a) a = agattr(agraphof(obj),AGTYPE(obj),name,def); return agxset(obj, a, value); }