ref: cf4e7fe3b953d06ea771eefce06c94e3cfec842b
parent: f8cf271294200f2a94ba15f77379d8524ce4a96d
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Jan 23 00:00:41 EST 2016
Fix possibly uninitialized 'tr'
--- a/parse/infer.c
+++ b/parse/infer.c
@@ -2473,6 +2473,7 @@
/* tag the traits */
free(k);
+ tr = NULL;
k = htkeys(st->tr, &n);
for (j = 0; j < n; j++) {
tr = gettrait(st, k[j]);
@@ -2499,6 +2500,7 @@
if (s->impl.vis != Visexport)
continue;
nodetag(st, s, 0, hidelocal);
+ tr = s->impl.trait;
for (j = 0; j < tr->naux; j++)
tr->aux[j]->vis = Visexport;
}