make weak taint table actually weak
This commit is contained in:
parent
0e95d49ddb
commit
4392ab7636
|
@ -2432,10 +2432,9 @@ static Scheme_Object *taint_intern(Scheme_Object *v)
|
||||||
Scheme_Bucket *b;
|
Scheme_Bucket *b;
|
||||||
|
|
||||||
b = scheme_bucket_from_table(taint_intern_table, (const char *)v);
|
b = scheme_bucket_from_table(taint_intern_table, (const char *)v);
|
||||||
if (b->val)
|
if (!b->val)
|
||||||
v = b->val;
|
b->val = scheme_true;
|
||||||
else
|
v = (Scheme_Object *)HT_EXTRACT_WEAK(b->key);
|
||||||
b->val = v;
|
|
||||||
|
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user