Fix concatenation of storage_mode string.
authorAndroid Tools Maintainers <android-tools-devel@lists.alioth.debian.org>
Fri, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
committerRoger Shimizu <rosh@debian.org>
Fri, 27 Jan 2023 05:43:52 +0000 (05:43 +0000)
Forwarded: not-needed

Gbp-Pq: Topic art
Gbp-Pq: Name storage-mode-concat.patch

art/runtime/image.cc

index 782c0c6dd9bf4b07ef1e512bd717559285a73bd1..5e3339de710c0d9e326bf9c8963dad9f6709457d 100644 (file)
@@ -191,7 +191,7 @@ bool ImageHeader::Block::Decompress(uint8_t* out_ptr,
     }
     default: {
       if (error_msg != nullptr) {
-        *error_msg = (std::ostringstream() << "Invalid image format " << storage_mode_).str();
+        *error_msg = "Invalid image format " + storage_mode_;
       }
       return false;
     }