Merge "Revert "dexopt: Fix target-sdk-version argument creation"" am: 683f3188c9 am: 0a08fb662e
am: 60957fa165
Change-Id: I694f7c0d255c40a243dd477200cb2cb6b7d22613
diff --git a/cmds/installd/dexopt.cpp b/cmds/installd/dexopt.cpp
index 3421800..3d7feb7 100644
--- a/cmds/installd/dexopt.cpp
+++ b/cmds/installd/dexopt.cpp
@@ -368,7 +368,7 @@
std::string dex2oat_image_fd;
std::string target_sdk_version_arg;
if (target_sdk_version != 0) {
- target_sdk_version_arg = StringPrintf("-Xtarget-sdk-version:%d", target_sdk_version);
+ StringPrintf("-Xtarget-sdk-version:%d", target_sdk_version);
}
std::string class_loader_context_arg;
if (class_loader_context != nullptr) {