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; }