summaryrefslogtreecommitdiffstats
path: root/ta/ta.c
diff options
context:
space:
mode:
Diffstat (limited to 'ta/ta.c')
-rw-r--r--ta/ta.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ta/ta.c b/ta/ta.c
index 7b6a6c7f91..275c8025b1 100644
--- a/ta/ta.c
+++ b/ta/ta.c
@@ -300,7 +300,7 @@ static void ta_dbg_remove(struct ta_header *h)
static size_t get_children_size(struct ta_header *h)
{
size_t size = 0;
- for (struct ta_header *s = h; s; s = s->next)
+ for (struct ta_header *s = h->child; s; s = s->next)
size += s->size + get_children_size(s);
return size;
}