Closed HazemRawi closed 1 month ago
in main.c line 1655 there is a broken for loop that is never got executed because of the contradicted initialization of j and the j==-1 condition
j
j==-1
follow = -1; for (int j = 0; j == -1 && j < config->number_of_servers; j++) { if (!strcmp(config->servers[j].follow, config->servers[i].name)) { follow = j; } }
I think the author was about to write follow instead of j in the preceding condition.
follow
in main.c line 1655 there is a broken for loop that is never got executed because of the contradicted initialization of
j
and thej==-1
conditionI think the author was about to write
follow
instead ofj
in the preceding condition.