Fixing null

This commit is contained in:
Anton Dolozin 2025-10-28 18:19:29 +01:00
parent 377ae74ccc
commit 8e875b1b46

View File

@ -58,7 +58,7 @@ struct car* clear_train(struct car* first, const char* target) {
first = first->next; first = first->next;
first->next = NULL; first->next = NULL;
free(temp); free(temp);
return NULL; return first;
} }
struct car* temp = first; struct car* temp = first;