sdm660-common: lights: fix an uninitialized local variable dereference

* lights hal might crash when call for buttons

Change-Id: Iadeb8490642cd7992daaa8b7854cdc1bb64a3de1
This commit is contained in:
chrmhoffmann 2018-09-02 19:55:33 +02:00 committed by OdSazib
parent f036db8030
commit 9e4356c1f2
No known key found for this signature in database
GPG key ID: CB336514F9F5CF69

View file

@ -223,7 +223,7 @@ namespace V2_0 {
namespace implementation {
Return<Status> Light::setLight(Type type, const LightState& state) {
LightStateHandler handler;
LightStateHandler handler = nullptr;
bool handled = false;
/* Lock global mutex until light state is updated. */