Assigned value at initialization is never read

Assigning variable instead to NULL.
This commit is contained in:
Paulo Matos 2019-02-13 15:29:12 +01:00 committed by Matthew Flatt
parent 5ea27fc972
commit f4c48dd9b5

View File

@ -551,7 +551,7 @@ static void BTC_do_accounting(NewGC *gc, int no_full)
if(gc->really_doing_accounting) { if(gc->really_doing_accounting) {
Scheme_Custodian *cur = owner_table[current_owner(gc, NULL)]->originator, *last, *parent; Scheme_Custodian *cur = owner_table[current_owner(gc, NULL)]->originator, *last, *parent;
Scheme_Custodian_Reference *box = cur->global_next; Scheme_Custodian_Reference *box = NULL;
int i; int i;
GC_ASSERT(SAME_TYPE(SCHEME_TYPE(cur), scheme_custodian_type)); GC_ASSERT(SAME_TYPE(SCHEME_TYPE(cur), scheme_custodian_type));