Fixing null
This commit is contained in:
parent
377ae74ccc
commit
8e875b1b46
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user