From cadda9577c95b23f6877c8efad003f8488acf1ae Mon Sep 17 00:00:00 2001 From: vj586da Date: Fri, 5 Nov 2021 08:29:43 +0100 Subject: [PATCH] test --- cv4/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv4/a_train.c b/cv4/a_train.c index 0961887..a4c58e5 100755 --- a/cv4/a_train.c +++ b/cv4/a_train.c @@ -75,7 +75,7 @@ struct car* clear_train(struct car* first, const char* target) { } if(strcmp(this->next->value, target) == 0){ free(this->next); - this->next=NULL; + this->next=this->next->next; return this; }else if(strcmp(this->next->next->value, target) == 0){ free(this->next->next);