From fcae661473aab45b7b6f60e949b98acbc2dd1dc7 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Tue, 13 Nov 2012 23:07:06 +0200 Subject: Bug fix. --- ChangeLog | 5 +++++ symbol.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9be4eaba..432fdf02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-11-13 Arnold D. Robbins + + * symbol.c (get_symbols): Check type, not vname. Keeps + valgrind happy. Thanks to Andrew Schorr for noticing the problem. + 2012-11-10 Arnold D. Robbins * Update to bison 2.6.5. Various files regenerated. diff --git a/symbol.c b/symbol.c index e698298f..7c770b4b 100644 --- a/symbol.c +++ b/symbol.c @@ -403,7 +403,7 @@ get_symbols(SYMBOL_TYPE what, int sort) for (i = j = 0; i < max; i += 2) { r = list[i+1]; - if (r->vname == NULL) /* non-variable in SYMTAB */ + if (r->type == Node_val) /* non-variable in SYMTAB */ continue; table[j++] = r; } -- cgit v1.2.3