diff --git a/light/Light.cpp b/light/Light.cpp index 2eac8c87..c243a130 100644 --- a/light/Light.cpp +++ b/light/Light.cpp @@ -223,7 +223,7 @@ namespace V2_0 { namespace implementation { Return Light::setLight(Type type, const LightState& state) { - LightStateHandler handler; + LightStateHandler handler = nullptr; bool handled = false; /* Lock global mutex until light state is updated. */