am cecc3186: am f650c075: Merge "fastboot: check argc before using argv"

* commit 'cecc3186ca18ddf7a2d43a12353c45a81ab2baca':
  fastboot: check argc before using argv
This commit is contained in:
Colin Cross 2012-07-24 18:54:17 -07:00 committed by Android Git Automerger
commit a2b3ded589
1 changed files with 1 additions and 1 deletions

View File

@ -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;