[gatekeeperd] fix use of uninitialized memory
Bug: 22319772 Change-Id: I3cb83389f11e54867aca132de48a3f6407b7eaf3
This commit is contained in:
parent
4dd2982dd3
commit
fef908e5a5
|
@ -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…
Reference in New Issue