From b9bc7ec87c63b0305e483bbb5d401430ce56a34c Mon Sep 17 00:00:00 2001 From: Emden Gansner Date: Mon, 13 Aug 2012 16:14:47 -0400 Subject: [PATCH] Fix bug with uninitialized Agsym_t*. This causes problems when command-line -G, -E, -N flags are used. --- lib/cgraph/grammar.y | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.50.1