Merge pull request #744 from masahir0y/fiptool

fiptool: fix Segmentation fault when only --verbose option is given
This commit is contained in:
davidcunado-arm 2016-10-28 23:18:16 +01:00 committed by GitHub
commit 061723f96c
1 changed files with 2 additions and 0 deletions

View File

@ -985,6 +985,8 @@ int main(int argc, char *argv[])
strcmp(argv[0], "--verbose") == 0) {
verbose = 1;
argc--, argv++;
if (argc < 1)
usage();
}
for (i = 0; i < NELEM(cmds); i++) {