Commit 2c412af6 authored by chrmhoffmann's avatar chrmhoffmann Committed by prady

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

* lights hal might crash when call for buttons

Change-Id: Iadeb8490642cd7992daaa8b7854cdc1bb64a3de1
parent 61eb070b
......@@ -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. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment