aboutsummaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-07-24 18:54:17 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-07-24 18:54:17 -0700
commita2b3ded589759c413c5231a89111e0349e92ec62 (patch)
tree81a4d4eb1ebd10271c76c0c80131bb58f95384e2 /fastboot
parentc4236c8b723184ddc2bfc6bbc54655e6c8245c5d (diff)
parentcecc3186ca18ddf7a2d43a12353c45a81ab2baca (diff)
downloadsystem_core-a2b3ded589759c413c5231a89111e0349e92ec62.zip
system_core-a2b3ded589759c413c5231a89111e0349e92ec62.tar.gz
system_core-a2b3ded589759c413c5231a89111e0349e92ec62.tar.bz2
am cecc3186: am f650c075: Merge "fastboot: check argc before using argv"
* commit 'cecc3186ca18ddf7a2d43a12353c45a81ab2baca': fastboot: check argc before using argv
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/fastboot.c2
1 files changed, 1 insertions, 1 deletions
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 @@ int main(int argc, char **argv)
return 1;
}
- if (!strcmp(*argv, "devices")) {
+ if (argc > 0 && !strcmp(*argv, "devices")) {
skip(1);
list_devices();
return 0;