From 2110f6c8a632b70284a0f2b1fa0f41f3fc5cc564 Mon Sep 17 00:00:00 2001 From: Anton Dolozin Date: Tue, 28 Oct 2025 20:15:09 +0100 Subject: [PATCH] Fixing the link --- du4/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du4/a_train.c b/du4/a_train.c index 310c3d1..69ebd66 100644 --- a/du4/a_train.c +++ b/du4/a_train.c @@ -67,8 +67,8 @@ struct car* clear_train(struct car* first, const char* target) { {if(strcmp(next->value, target) == 0){ temp->next = next->next; + next->next = NULL; free(next); - next = temp->next; } else{