diff --git a/cv6/a_station.c b/cv6/a_station.c index 8baf409..c6cb67d 100644 --- a/cv6/a_station.c +++ b/cv6/a_station.c @@ -29,7 +29,7 @@ void destroy_station(struct station* station){ int select_track(struct station* station, const char* target){ unsigned long hash = 5381; int c; - while (c = *str++) + while (c = *target++) hash = ((hash << 5) + hash) + c; return hash;