From 4d12d1de23ae2def143df06b7f29d64f577900c8 Mon Sep 17 00:00:00 2001 From: Ivan Leichenko Date: Thu, 17 Oct 2024 23:08:28 +0200 Subject: [PATCH] no NULL? cv4 --- cv4/a_train.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cv4/a_train.c b/cv4/a_train.c index bfc56f4..4e252b2 100644 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -89,6 +89,7 @@ struct car* clear_train(struct car* first, const char* target) else if(!strcmp(prev->next->value, target)) { free(prev->next); + prev->next = NULL; return first; } else