aboutsummaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2012-07-24 18:51:54 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-07-24 18:51:54 -0700
commitcecc3186ca18ddf7a2d43a12353c45a81ab2baca (patch)
tree384453ba060aa0c25132e07bd2547695329483fc /fastboot
parent34fd8596463832c1ce670f436b31ed851552c8f4 (diff)
parentf650c07586d65ee655eba6d297ebaacffedae29e (diff)
downloadsystem_core-cecc3186ca18ddf7a2d43a12353c45a81ab2baca.tar.gz
system_core-cecc3186ca18ddf7a2d43a12353c45a81ab2baca.tar.bz2
system_core-cecc3186ca18ddf7a2d43a12353c45a81ab2baca.zip
am f650c075: Merge "fastboot: check argc before using argv"
* commit 'f650c07586d65ee655eba6d297ebaacffedae29e': 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 ff991730..59544443 100644
--- a/fastboot/fastboot.c
+++ b/fastboot/fastboot.c
@@ -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;