diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/lj_trace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_trace.c b/src/lj_trace.c index cc42dffe..da20f991 100644 --- a/src/lj_trace.c +++ b/src/lj_trace.c | |||
@@ -226,7 +226,7 @@ static void trace_flushroot(jit_State *J, GCtrace *T) | |||
226 | /* Unlink root trace from chain anchored in prototype. */ | 226 | /* Unlink root trace from chain anchored in prototype. */ |
227 | if (pt->trace == T->traceno) { /* Trace is first in chain. Easy. */ | 227 | if (pt->trace == T->traceno) { /* Trace is first in chain. Easy. */ |
228 | pt->trace = T->nextroot; | 228 | pt->trace = T->nextroot; |
229 | } else { /* Otherwise search in chain of root traces. */ | 229 | } else if (pt->trace) { /* Otherwise search in chain of root traces. */ |
230 | GCtrace *T2 = traceref(J, pt->trace); | 230 | GCtrace *T2 = traceref(J, pt->trace); |
231 | if (T2) { | 231 | if (T2) { |
232 | for (; T2->nextroot; T2 = traceref(J, T2->nextroot)) | 232 | for (; T2->nextroot; T2 = traceref(J, T2->nextroot)) |