aboutsummaryrefslogtreecommitdiff
path: root/libc/stack.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/stack.c')
-rw-r--r--libc/stack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/stack.c b/libc/stack.c
index c47dd59..cd5a2aa 100644
--- a/libc/stack.c
+++ b/libc/stack.c
@@ -115,7 +115,7 @@ void *stack_peek(struct stack *stack)
if (!stack || !stack->tail)
return NULL;
- return stack->tail;
+ return stack->tail->data;
}
void stack_clear(struct stack *stack)