mirror of
https://github.com/CTCaer/switch-l4t-atf.git
synced 2025-02-12 13:48:23 +00:00
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: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
ad09652c41
commit
c9cb408997
@ -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++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user