This commit is contained in:
Valér Jakubčo 2021-11-04 21:06:44 +01:00
parent af3d09e2ef
commit ba63b9c3b0

View File

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