summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2025-01-16 13:42:37 -0800
committer Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2025-01-17 01:05:39 -0800
commit861374be541184caefe37ce18b157feafae807ac (patch)
tree4969ee7ee924bbb8a2c0e7bd612e068bb6782433
parentf19b2056ed085030b3fd9bd0487df2b890264c14 (diff)
Fix PaletteDebugStoreGetString fake
This was correct in the near-duplicate version under system, but not in the ART version. Extracted from aosp/3355710. Test: Treehugger Change-Id: Ib02e68cfabe69caf69263f2c691b8b8bc910c1b9
-rw-r--r--libartpalette/system/palette_fake.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/libartpalette/system/palette_fake.cc b/libartpalette/system/palette_fake.cc
index f2fc76d68c..444ea0941c 100644
--- a/libartpalette/system/palette_fake.cc
+++ b/libartpalette/system/palette_fake.cc
@@ -151,5 +151,6 @@ palette_status_t PaletteSetTaskProfiles([[maybe_unused]] int32_t tid,
// Methods in version 4 API, corresponding to SDK level 36.
palette_status_t PaletteDebugStoreGetString([[maybe_unused]] char* result,
[[maybe_unused]] size_t max_size) {
+ result[0] = '\0';
return PALETTE_STATUS_OK;
}