diff --git a/src/pkg/runtime/mgc0.c b/src/pkg/runtime/mgc0.c index c16bac1a0d..ec6712cbf9 100644 --- a/src/pkg/runtime/mgc0.c +++ b/src/pkg/runtime/mgc0.c @@ -913,10 +913,8 @@ scanblock(Workbuf *wbuf, bool keepworking) case GC_STRING: stringptr = (String*)(stack_top.b + pc[1]); - if(stringptr->len != 0) { - obj = stringptr->str; - markonly(obj); - } + if(stringptr->len != 0) + markonly(stringptr->str); pc += 2; continue;