* commit 'a5c8358a31a62315b9904d508316d3d4ca962d93': [gatekeeperd] fix use of uninitialized memory
This commit is contained in:
commit
07f0aef8b9
1 changed files with 2 additions and 0 deletions
|
|
@ -50,6 +50,8 @@ class GateKeeperProxy : public BnGateKeeperService {
|
|||
public:
|
||||
GateKeeperProxy() {
|
||||
int ret = hw_get_module_by_class(GATEKEEPER_HARDWARE_MODULE_ID, NULL, &module);
|
||||
device = NULL;
|
||||
|
||||
if (ret < 0) {
|
||||
ALOGW("falling back to software GateKeeper");
|
||||
soft_device.reset(new SoftGateKeeperDevice());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue