Skip to content

Commit 71db317

Browse files
Treehugger RobotGerrit Code Review
authored andcommitted
Merge "Use more inclusive language for #inclusivefixit"
2 parents 1d098a7 + 714adb8 commit 71db317

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

trusty/gatekeeper/trusty_gatekeeper.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,9 @@ TrustyGateKeeperDevice::~TrustyGateKeeperDevice() {
5656

5757
SizedBuffer hidl_vec2sized_buffer(const hidl_vec<uint8_t>& vec) {
5858
if (vec.size() == 0 || vec.size() > std::numeric_limits<uint32_t>::max()) return {};
59-
auto dummy = new uint8_t[vec.size()];
60-
std::copy(vec.begin(), vec.end(), dummy);
61-
return {dummy, static_cast<uint32_t>(vec.size())};
59+
auto buffer = new uint8_t[vec.size()];
60+
std::copy(vec.begin(), vec.end(), buffer);
61+
return {buffer, static_cast<uint32_t>(vec.size())};
6262
}
6363

6464
Return<void> TrustyGateKeeperDevice::enroll(uint32_t uid,

0 commit comments

Comments
 (0)