aboutsummaryrefslogtreecommitdiff
path: root/lib/alloc/arena_zero.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/alloc/arena_zero.c')
-rw-r--r--lib/alloc/arena_zero.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/alloc/arena_zero.c b/lib/alloc/arena_zero.c
index b0e3fbe..296007e 100644
--- a/lib/alloc/arena_zero.c
+++ b/lib/alloc/arena_zero.c
@@ -9,6 +9,7 @@ arena_zero(arena *a)
struct _region *cur = a->_head;
while (cur != nullptr) {
cur->len = 0;
+ cur->last = cur->data;
cur = cur->next;
}
}