diff --git a/stack.c b/stack.c index 5ca7421a93564f12dfc650627e75a31355cbcbdf..cbe06a36e683c715092e2656ac8627451764f208 100644 --- a/stack.c +++ b/stack.c @@ -95,4 +95,5 @@ bool stack_is_empty(stack s) void stack_clear(stack *s) { s->top = -1; + s->capacity = DEFAULT_CAPACITY; } \ No newline at end of file