]> granicus.if.org Git - graphviz/commitdiff
Fix glitch in agsafeset.
authorellson <devnull@localhost>
Tue, 18 Oct 2005 21:11:06 +0000 (21:11 +0000)
committerellson <devnull@localhost>
Tue, 18 Oct 2005 21:11:06 +0000 (21:11 +0000)
lib/graph/attribs.c

index fc82f280e0c30bd8da3ba02f07fb980b323543dc..1b8037a3a2b79770d47e240836183a981ca44027 100644 (file)
@@ -335,13 +335,13 @@ int agsafeset(void* obj, char* name, char* value, char* def)
        if (!def) def = "";
        switch (TAG_OF(obj)) {
        case TAG_GRAPH:
-           agraphattr((Agraph_t*)obj, name, def);
+           a = agraphattr((Agraph_t*)obj, name, def);
            break;
        case TAG_NODE:
-           agnodeattr(((Agnode_t*)obj)->graph, name, def);
+           a = agnodeattr(((Agnode_t*)obj)->graph, name, def);
            break;
        case TAG_EDGE:
-           agedgeattr(((Agedge_t*)obj)->head->graph, name, def);
+           a = agedgeattr(((Agedge_t*)obj)->head->graph, name, def);
            break;
        }
     }