Fixed command line parsing

This commit is contained in:
SChernykh 2023-04-17 23:28:03 +02:00
parent 93365973a7
commit 14ab9f462a

View file

@ -97,7 +97,7 @@ int main(int argc, char* argv[])
return 0;
}
if (strcmp(argv[i], "--version") || strcmp(argv[i], "/version") || strcmp(argv[i], "-v") || strcmp(argv[i], "/v")) {
if (!strcmp(argv[i], "--version") || !strcmp(argv[i], "/version") || !strcmp(argv[i], "-v") || !strcmp(argv[i], "/v")) {
p2pool_version();
return 0;
}