Merge "fastboot: check argc before using argv"
This commit is contained in:
commit
f650c07586
1 changed files with 1 additions and 1 deletions
|
|
@ -825,7 +825,7 @@ int main(int argc, char **argv)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcmp(*argv, "devices")) {
|
if (argc > 0 && !strcmp(*argv, "devices")) {
|
||||||
skip(1);
|
skip(1);
|
||||||
list_devices();
|
list_devices();
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue