no NULL? cv4
This commit is contained in:
parent
d9c0ad3b48
commit
4d12d1de23
@ -89,6 +89,7 @@ struct car* clear_train(struct car* first, const char* target)
|
||||
else if(!strcmp(prev->next->value, target))
|
||||
{
|
||||
free(prev->next);
|
||||
prev->next = NULL;
|
||||
return first;
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user