Update common/core/desktop/tests/unit/kmnkbd/test_kmx_xstring.cpp

Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
SabineSIL 2021-09-20 10:42:12 +02:00 • committed by GitHub
parent 9d28ebf433
commit e92a2bf557
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -237,7 +237,7 @@ int main(int argc, char *argv []) {
return error_args();
}
auto arg_color = std::string(argv[1]) == "--color";
auto arg_color = argc > 1 && std::string(argv[1]) == "--color";
if(arg_color && argc < 3) {
return error_args();
}