]> granicus.if.org Git - graphviz/commitdiff
Fix bug in agsafeset()
authorerg <devnull@localhost>
Thu, 8 Nov 2007 21:40:52 +0000 (21:40 +0000)
committererg <devnull@localhost>
Thu, 8 Nov 2007 21:40:52 +0000 (21:40 +0000)
lib/cgraph/attr.c

index 3be23ca4d267c03e9e331f9c590bd1d77dd5c6fa..cb870da458e0f1485e2e15349d0570d39044d3aa 100644 (file)
@@ -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);
 }