Commit c9cb4089 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

fiptool: fix Segmentation fault when only --verbose option is given



Fix the following bug:

  $ tools/fiptool/fiptool -v
  Segmentation fault (core dumped)
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent ad09652c
......@@ -983,6 +983,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++) {
......
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