make weak taint table actually weak

This commit is contained in:
Matthew Flatt 2011-07-08 06:28:43 -06:00
parent 0e95d49ddb
commit 4392ab7636

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;
}