Updated the file head
This commit is contained in:
parent
ff0e21d42b
commit
5d13eb0e38
@ -299,7 +299,8 @@ void read_file()
|
|||||||
// we need to clear it first
|
// we need to clear it first
|
||||||
// before we re-initailize the new data
|
// before we re-initailize the new data
|
||||||
STUDENT *temp;
|
STUDENT *temp;
|
||||||
while (head != NULL) {
|
while (head != NULL)
|
||||||
|
{
|
||||||
temp = head;
|
temp = head;
|
||||||
head = head->next;
|
head = head->next;
|
||||||
free(temp);
|
free(temp);
|
||||||
|
Loading…
Reference in New Issue
Block a user