Skip to content

Fix use of uninitialized variable

I got this compile warning:

actions.c: In function ‘light’: actions.c:672:6: warning: ‘spk’ may be used uninitialized in this function [-Wmaybe-uninitialized] RSPEAK(spk); ^~~~~~~~~~~

Before localization of SPK, this used the value set in action so now add spk as a parameter to light.

Note: no current test uses this code path so this might be redundant

Merge request reports

Loading