no NULL? cv4

This commit is contained in:
Ivan Leichenko 2024-10-17 23:08:28 +02:00
parent d9c0ad3b48
commit 4d12d1de23

View File

@ -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