This commit is contained in:
Maryna Kravtsova 2020-11-03 10:42:44 +01:00
parent c9ecd592a8
commit d638476ad0

View File

@ -76,7 +76,7 @@ struct car* clear_train(struct car* first, const char* target) {
else{ else{
struct car* this = first; struct car* this = first;
while(this != NULL){ while(this != NULL){
int x == strcmp(this->value, target); int x = strcmp(this->value, target);
if(x == 0){ if(x == 0){
free(this->value); free(this->value);
return 0; return 0;