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:
parent
f036db8030
commit
9e4356c1f2
1 changed files with 1 additions and 1 deletions
|
@ -223,7 +223,7 @@ namespace V2_0 {
|
||||||
namespace implementation {
|
namespace implementation {
|
||||||
|
|
||||||
Return<Status> Light::setLight(Type type, const LightState& state) {
|
Return<Status> Light::setLight(Type type, const LightState& state) {
|
||||||
LightStateHandler handler;
|
LightStateHandler handler = nullptr;
|
||||||
bool handled = false;
|
bool handled = false;
|
||||||
|
|
||||||
/* Lock global mutex until light state is updated. */
|
/* Lock global mutex until light state is updated. */
|
||||||
|
|
Loading…
Reference in a new issue