Commit 061723f9 authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

Merge pull request #744 from masahir0y/fiptool

fiptool: fix Segmentation fault when only --verbose option is given
parents 869605ab c9cb4089
...@@ -985,6 +985,8 @@ int main(int argc, char *argv[]) ...@@ -985,6 +985,8 @@ int main(int argc, char *argv[])
strcmp(argv[0], "--verbose") == 0) { strcmp(argv[0], "--verbose") == 0) {
verbose = 1; verbose = 1;
argc--, argv++; argc--, argv++;
if (argc < 1)
usage();
} }
for (i = 0; i < NELEM(cmds); i++) { for (i = 0; i < NELEM(cmds); i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment