am cecc3186: am f650c075: Merge "fastboot: check argc before using argv"
* commit 'cecc3186ca18ddf7a2d43a12353c45a81ab2baca': fastboot: check argc before using argv
This commit is contained in:
commit
a2b3ded589
|
@ -843,7 +843,7 @@ int main(int argc, char **argv)
|
|||
return 1;
|
||||
}
|
||||
|
||||
if (!strcmp(*argv, "devices")) {
|
||||
if (argc > 0 && !strcmp(*argv, "devices")) {
|
||||
skip(1);
|
||||
list_devices();
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue