diff --git a/src/machine.cpp b/src/machine.cpp index 1e6556e3f5..eaeea44830 100644 --- a/src/machine.cpp +++ b/src/machine.cpp @@ -52,8 +52,8 @@ Thread** fill(Thread* t, Thread* o, Thread** array) { if (t != o) *(array++) = t; - if (t->peer) fill(t->peer, o, array); - if (t->child) fill(t->child, o, array); + if (t->peer) array = fill(t->peer, o, array); + if (t->child) array = fill(t->child, o, array); return array; }