diff --git a/du4/a_train.c b/du4/a_train.c index 8dcd1d4..72b1618 100644 --- a/du4/a_train.c +++ b/du4/a_train.c @@ -70,7 +70,6 @@ struct car* clear_train(struct car* first, const char* target) { if(strcmp(temp->value, target) == 0){ prev->next = temp->next; - temp = NULL; temp = prev->next; }