From 522e2ebc9f60801cd09f30cae3f4f2f8c2eae372 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Mon, 21 Jul 2008 14:41:29 -0600 Subject: [PATCH] fix bug in debug helper function --- src/machine.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }