From f82ebaf2481035f1a5e966451083e88da57c4d8c Mon Sep 17 00:00:00 2001 From: Anton Dolozin Date: Tue, 4 Nov 2025 23:30:29 +0100 Subject: [PATCH] Fixing adding issue --- 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 17b5280..1a4daa1 100644 --- a/du5/a_station.c +++ b/du5/a_station.c @@ -35,7 +35,7 @@ void add_target_capacity(struct station* station,const char* target, int capacit if(count == res){ break; } - if (ptr->value == target){ + else if (strcmp(ptr->value, target) ==0){ ptr->capacity += capacity; return; }