From: Android Tools Maintainers Date: Fri, 20 Jan 2023 08:36:41 +0000 (+0000) Subject: Fix concatenation of storage_mode string. X-Git-Tag: archive/raspbian/29.0.6-23+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e000b6096e32e6c8406ab716b0c7e60437f792c4;p=android-platform-tools.git Fix concatenation of storage_mode string. Forwarded: not-needed Gbp-Pq: Topic art Gbp-Pq: Name storage-mode-concat.patch --- diff --git a/art/runtime/image.cc b/art/runtime/image.cc index 782c0c6d..5e3339de 100644 --- a/art/runtime/image.cc +++ b/art/runtime/image.cc @@ -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; }