This commit is contained in:
Maryna Kravtsova 2020-11-05 15:54:03 +01:00
parent d4271c3370
commit 2230d9d16e

View File

@ -81,8 +81,6 @@ struct car* clear_train(struct car* first, const char* target) {
}
prev = prev->next;
}
if(prev->next->next == NULL) {
int x = strcmp(first->value, target);
@ -97,13 +95,8 @@ struct car* clear_train(struct car* first, const char* target) {
struct car* third = prev->next->next;
free(prev->next);
prev->next = third;
}
//free(prev->next);
//prev->next = NULL;
}
}
}
return first;
}