commit | cecc3186ca18ddf7a2d43a12353c45a81ab2baca | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jul 24 18:51:54 2012 -0700 |
committer | Android Git Automerger <android-git-automerger@android.com> | Tue Jul 24 18:51:54 2012 -0700 |
tree | 384453ba060aa0c25132e07bd2547695329483fc | |
parent | 34fd8596463832c1ce670f436b31ed851552c8f4 [diff] | |
parent | f650c07586d65ee655eba6d297ebaacffedae29e [diff] |
am f650c075: Merge "fastboot: check argc before using argv" * commit 'f650c07586d65ee655eba6d297ebaacffedae29e': fastboot: check argc before using argv
diff --git a/fastboot/fastboot.c b/fastboot/fastboot.c index ff99173..5954444 100644 --- a/fastboot/fastboot.c +++ b/fastboot/fastboot.c
@@ -825,7 +825,7 @@ return 1; } - if (!strcmp(*argv, "devices")) { + if (argc > 0 && !strcmp(*argv, "devices")) { skip(1); list_devices(); return 0;