From eaed9eda90d26938bee40f1fd24871aacb4fe8b7 Mon Sep 17 00:00:00 2001 From: Radovan Kofira Date: Thu, 5 Nov 2020 21:01:30 +0100 Subject: [PATCH] ah.. --- cv5/a_train.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cv5/a_train.c b/cv5/a_train.c index b512cd9..c9e1142 100644 --- a/cv5/a_train.c +++ b/cv5/a_train.c @@ -16,7 +16,7 @@ struct car* add_car(struct car* first,const char* target) { struct car* newcar = calloc(1,sizeof(struct car)); struct car* this=first; strcpy(newcar->value, target); - if(this==NULL){ + if(first==NULL){ return newcar; } while(this->next!=NULL){