From: ellson Date: Fri, 13 Jan 2006 15:20:02 +0000 (+0000) Subject: fix crash when trying to create new edge attributes from scripts X-Git-Tag: LAST_LIBGRAPH~32^2~6876 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d078b4e6f276be9d4360849819a75c64138bd7c6;p=graphviz fix crash when trying to create new edge attributes from scripts --- diff --git a/tclpkg/gv/gv.cpp b/tclpkg/gv/gv.cpp index 2c329773d..577c42466 100644 --- a/tclpkg/gv/gv.cpp +++ b/tclpkg/gv/gv.cpp @@ -261,7 +261,7 @@ char *setv(Agedge_t *e, char *attr, char *val) g = e->tail->graph; a = agfindattr(g->proto->e, attr); if (!a) - a = agnodeattr(g, attr, empty_string); + a = agedgeattr(g, attr, empty_string); agxset(e, a->index, val); return val; }