make weak taint table actually weak

(cherry picked from commit 4392ab7636)
This commit is contained in:
Matthew Flatt 2011-07-08 06:28:43 -06:00 committed by Eli Barzilay
parent 06f42651f5
commit 7fc99aa0b3

View File

@ -2432,10 +2432,9 @@ static Scheme_Object *taint_intern(Scheme_Object *v)
Scheme_Bucket *b;
b = scheme_bucket_from_table(taint_intern_table, (const char *)v);
if (b->val)
v = b->val;
else
b->val = v;
if (!b->val)
b->val = scheme_true;
v = (Scheme_Object *)HT_EXTRACT_WEAK(b->key);
return v;
}