commit | 787c3764d305168e927c29d5d57ae68e242cd7a9 | [log] [tgz] |
---|---|---|
author | Andres Morales <anmorales@google.com> | Fri Jul 10 17:20:30 2015 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Fri Jul 10 17:20:31 2015 +0000 |
tree | e8fef8c7066e51646c8cefea420b83eb4b653442 | |
parent | 0b0435ea87f87b31652a2c6272c1f77438bfcdf1 [diff] | |
parent | fef908e5a50a4026bb94edabb8f500a959b9ed0e [diff] |
Merge "[gatekeeperd] fix use of uninitialized memory" into mnc-dev
diff --git a/gatekeeperd/gatekeeperd.cpp b/gatekeeperd/gatekeeperd.cpp index cd6d18f..9788681 100644 --- a/gatekeeperd/gatekeeperd.cpp +++ b/gatekeeperd/gatekeeperd.cpp
@@ -50,6 +50,8 @@ 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());