system/bt
Revision | fcd93fd2a29f4a69f98cb650a0b982dbfc42418e (tree) |
---|---|
Time | 2019-10-16 13:42:57 |
Author | Nick Desaulniers <ndesaulniers@goog...> |
Commiter | android-build-merger |
[system][bt] fix -Wdangling-gsl am: 20ed45d633 am: 2f0c176bad am: 2bcb84cd7d am: 6c6ffc3d18 am: 9e474d2ee6
am: be1c9c3248
Change-Id: I25f8df91c9fb578829bafa44f9f0adfa7580c117
@@ -188,8 +188,8 @@ void LowEnergyClient::MtuChangedCallback( | ||
188 | 188 | |
189 | 189 | if (!bda) return; |
190 | 190 | |
191 | - const char* addr = BtAddrString(bda).c_str(); | |
192 | - if (delegate_) delegate_->OnMtuChanged(this, status, addr, mtu); | |
191 | + std::string addr = BtAddrString(bda); | |
192 | + if (delegate_) delegate_->OnMtuChanged(this, status, addr.c_str(), mtu); | |
193 | 193 | } |
194 | 194 | |
195 | 195 | // LowEnergyClientFactory implementation |