From: Android Tools Maintainers Date: Tue, 31 Jan 2023 07:58:29 +0000 (+0000) Subject: Fix concatenation of storage_mode string. X-Git-Tag: archive/raspbian/29.0.6-26+rpi1^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f5c6a308d6c881f87399ffb854db9d3157744a0a;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; }