This commit is contained in:
Maryna Kravtsova 2020-11-04 22:34:46 +01:00
parent c6ade28c0b
commit b9c56da641

View File

@ -85,7 +85,7 @@ struct car* clear_train(struct car* first, const char* target) {
} }
int x = strcmp(this->next->value, target); int x = strcmp(this->value, target);
if(x == 0){ if(x == 0){
free(this->next); free(this->next);
this->next = NULL; this->next = NULL;