From 90bc2f4090a71fe9bfdd5a1b1193edc6f673d038 Mon Sep 17 00:00:00 2001 From: Anton Dolozin Date: Tue, 4 Nov 2025 23:56:24 +0100 Subject: [PATCH] Fixing --- du5/a_station.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du5/a_station.c b/du5/a_station.c index 9131237..caaba3b 100644 --- a/du5/a_station.c +++ b/du5/a_station.c @@ -56,7 +56,7 @@ void add_target_capacity(struct station* station,const char* target, int capacit return; } } - else if (count == res && strcmp(ptr->value, target) == 0){ + else if (count == res && strcmp(ptr->value, target) != 0){ struct car* next = (struct car*)calloc(1, sizeof(struct car)); strcpy(next->value, target); next->capacity = capacity;