+3
−2
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This is a defensive change. The current code is safe due to the resize() which happens 30 lines above this one. However, if that resize() were to change or disappear, then this code would be dangerous, as the resize() could potentially cause a reallocation, and move our memory buffer. Since it's no additional cost to grab the pointer into the array after the resize(), we do that. Bug: 232940948 Test: TreeHugger Change-Id: I29b6cbeb064c7654eb21d2e42e05a0587604c32b