mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 17:47:40 +00:00
Update common/core/desktop/tests/unit/kmnkbd/test_kmx_xstring.cpp
Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
parent
9d28ebf433
commit
e92a2bf557
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue