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

* commit 'f650c07586d65ee655eba6d297ebaacffedae29e':
  fastboot: check argc before using argv
This commit is contained in:
Colin Cross 2012-07-24 18:51:54 -07:00 committed by Android Git Automerger
commit cecc3186ca

View file

@ -825,7 +825,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;