From 5d13eb0e385900a7f82e803ce98f481af03c8179 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Sun, 2 Aug 2020 19:49:41 +0700 Subject: [PATCH] Updated the file head --- work1/single.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/work1/single.c b/work1/single.c index 8266973..fb3138a 100644 --- a/work1/single.c +++ b/work1/single.c @@ -299,7 +299,8 @@ void read_file() // we need to clear it first // before we re-initailize the new data STUDENT *temp; - while (head != NULL) { + while (head != NULL) + { temp = head; head = head->next; free(temp);