diff --git a/du6/a_station.c b/du6/a_station.c index 5e32121..04a699d 100644 --- a/du6/a_station.c +++ b/du6/a_station.c @@ -25,7 +25,7 @@ void destroy_station(struct station* stanica){ int select_track(struct station* stanica, const char* ciel){ unsigned long heslo = 5381; int znak; - while ((znak == *ciel++)){ + while ((znak = *ciel++)){ heslo = ((heslo << 5) + heslo) + znak; } return heslo % stanica->track_count;