From 14ab9f462a29e3103ff81bbb8a088ecc971710a3 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Mon, 17 Apr 2023 23:28:03 +0200 Subject: [PATCH] Fixed command line parsing --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index f5737a8..3a9c421 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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; }