commit | a2b3ded589759c413c5231a89111e0349e92ec62 | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jul 24 18:54:17 2012 -0700 |
committer | Android Git Automerger <android-git-automerger@android.com> | Tue Jul 24 18:54:17 2012 -0700 |
tree | 81a4d4eb1ebd10271c76c0c80131bb58f95384e2 | |
parent | c4236c8b723184ddc2bfc6bbc54655e6c8245c5d [diff] | |
parent | cecc3186ca18ddf7a2d43a12353c45a81ab2baca [diff] |
am cecc3186: am f650c075: Merge "fastboot: check argc before using argv" * commit 'cecc3186ca18ddf7a2d43a12353c45a81ab2baca': fastboot: check argc before using argv
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index 6a14301..b4262f4 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c
@@ -843,7 +843,7 @@ return 1; } - if (!strcmp(*argv, "devices")) { + if (argc > 0 && !strcmp(*argv, "devices")) { skip(1); list_devices(); return 0;