From c0c5bb9288f261880e4eb32c3f08da0772a22654 Mon Sep 17 00:00:00 2001
From: jonas <jonas.stirnemann@etu.hesge.ch>
Date: Mon, 6 Dec 2021 21:12:16 +0100
Subject: [PATCH] Resized capacity to default when clearing stack

---
 stack.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/stack.c b/stack.c
index 5ca7421..cbe06a3 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
-- 
GitLab