We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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
The text was updated successfully, but these errors were encountered:
[pgmoneta#250] Broken For loop
7c9b38b
[#250] Broken For loop
4a8613f
HazemRawi
No branches or pull requests
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.The text was updated successfully, but these errors were encountered: