summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Baptiste Queru <jbq@google.com>2012-08-20 14:41:24 -0700
committerandroid code review <noreply-gerritcodereview@google.com>2012-08-20 14:41:25 -0700
commit0874aa0ec4f413a77a610133c904c2590a2e3ccd (patch)
treea62ad4d5665d11b74a60dcd9c44d5db546ace389
parent52d5dfc8d30890734ee7122c3139f8637e196a1c (diff)
parent8127323f145b2de7e1c30bbb7af0d20d783ac76b (diff)
downloadsystem_core-0874aa0ec4f413a77a610133c904c2590a2e3ccd.zip
system_core-0874aa0ec4f413a77a610133c904c2590a2e3ccd.tar.gz
system_core-0874aa0ec4f413a77a610133c904c2590a2e3ccd.tar.bz2
Merge "adb: Pick desired product value from command line it follows -p"
-rw-r--r--adb/commandline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/adb/commandline.c b/adb/commandline.c
index 47c9bec..d2b8166 100644
--- a/adb/commandline.c
+++ b/adb/commandline.c
@@ -963,7 +963,7 @@ int adb_commandline(int argc, char **argv)
argc--;
argv++;
} else {
- product = argv[1] + 2;
+ product = argv[0] + 2;
}
gProductOutPath = find_product_out_path(product);
if (gProductOutPath == NULL) {