summaryrefslogtreecommitdiff
path: root/gatekeeperd
diff options
context:
space:
mode:
authorAndres Morales <anmorales@google.com>2015-07-10 17:20:30 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2015-07-10 17:20:31 +0000
commit787c3764d305168e927c29d5d57ae68e242cd7a9 (patch)
treee8fef8c7066e51646c8cefea420b83eb4b653442 /gatekeeperd
parent0b0435ea87f87b31652a2c6272c1f77438bfcdf1 (diff)
parentfef908e5a50a4026bb94edabb8f500a959b9ed0e (diff)
Merge "[gatekeeperd] fix use of uninitialized memory" into mnc-dev
Diffstat (limited to 'gatekeeperd')
-rw-r--r--gatekeeperd/gatekeeperd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gatekeeperd/gatekeeperd.cpp b/gatekeeperd/gatekeeperd.cpp
index cd6d18fc9..978868196 100644
--- a/gatekeeperd/gatekeeperd.cpp
+++ b/gatekeeperd/gatekeeperd.cpp
@@ -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());