qcatool: prevent crash when only options on command line without any commands

This commit is contained in:
Ivan Romanov 2014-09-23 18:32:25 +06:00
parent 2cdd6c4bd1
commit 2950458c77

View File

@ -2860,7 +2860,7 @@ int main(int argc, char **argv)
}
// help
if(args[0] == "help" || args[0] == "--help" || args[0] == "-h")
if(args.isEmpty() || args[0] == "help" || args[0] == "--help" || args[0] == "-h")
{
usage();
return 0;