replace == with strcmp
This commit is contained in:
@@ -60,7 +60,7 @@ void HelpCommand() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int RunCommandHandler(int argc, char* argv[]) {
|
int RunCommandHandler(int argc, char* argv[]) {
|
||||||
if (argv[1] == "-h" || argc == 1) {
|
if (std::strcmp(argv[1], "-h") == 0 || argc == 1) {
|
||||||
HelpCommand();
|
HelpCommand();
|
||||||
return EXIT_SUCCESS;
|
return EXIT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user