Merge "[gatekeeperd] fix use of uninitialized memory" into mnc-dev

This commit is contained in:
Andres Morales 2015-07-10 17:20:30 +00:00 committed by Android (Google) Code Review
commit 787c3764d3
1 changed files with 2 additions and 0 deletions

View File

@ -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());