From: Emden Gansner Date: Mon, 13 Aug 2012 20:14:47 +0000 (-0400) Subject: Fix bug with uninitialized Agsym_t*. This causes problems when command-line -G, ... X-Git-Tag: LAST_LIBGRAPH~32^2~356^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9bc7ec87c63b0305e483bbb5d401430ce56a34c;p=graphviz Fix bug with uninitialized Agsym_t*. This causes problems when command-line -G, -E, -N flags are used. --- diff --git a/lib/cgraph/grammar.y b/lib/cgraph/grammar.y index 0bde9e07f..3e3828a24 100644 --- a/lib/cgraph/grammar.y +++ b/lib/cgraph/grammar.y @@ -330,6 +330,8 @@ static void attrstmt(int tkind, char *macroname) for (aptr = Attrlist.first; aptr; aptr = aptr->next) { if (!(aptr->u.asym->fixed) || (G->root != G)) sym = agattr(G,kind,aptr->u.asym->name,aptr->str); + else + sym = aptr->u.asym; if (G->root == G) sym->print = TRUE; }