This commit is contained in:
Maryna Kravtsova 2020-11-04 11:11:59 +01:00
parent 460920648d
commit 8479e19522

View File

@ -63,7 +63,7 @@ struct car* clear_train(struct car* first, const char* target) {
}
}
struct car* prev = first;
int z = strcmp(prev->value, target};
int z = strcmp(prev->value, target);
if(z == 0){
struct car* only = prev->next;
free(prev);