OSDN Git Service

btif_config: Fix pointer to freed memory
authorGreg Kaiser <gkaiser@google.com>
Tue, 26 May 2020 12:42:36 +0000 (05:42 -0700)
committerGreg Kaiser <gkaiser@google.com>
Tue, 26 May 2020 12:49:45 +0000 (12:49 +0000)
commitd96e89cd9c9e43224be56a734285ec716525df07
tree9286301c99333f7b336318a09a5d62af220bfc14
parentae93daab292ea3608173db8ba9660ca71aaa69b7
btif_config: Fix pointer to freed memory

We change the scope of our 'string' declaration so the contents
are still in scope when we use a pointer to them.  Previously,
the contents were out of scope when we referenced them through
a pointer.

Bug: 148758680
Test: TreeHugger
Change-Id: Ib0aa689bf4547d079b77965d958cc382ba0276e6
btif/src/btif_config.cc