commit | f650c07586d65ee655eba6d297ebaacffedae29e | [log] [tgz] |
---|---|---|
author | Colin Cross <ccross@android.com> | Tue Jul 24 18:07:05 2012 -0700 |
committer | android code review <noreply-gerritcodereview@google.com> | Tue Jul 24 18:07:06 2012 -0700 |
tree | 859cf4ccb6d954eeb62a6b4430a8ff0027c830f7 | |
parent | f58f62eb31afb59a74566f60683cbbd1099e3111 [diff] | |
parent | 8fb6e06ba44b92258bf44110ea5361496257e24e [diff] |
Merge "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;