[PATCH] alsa: control_led - fix initialization in the mode show callback
Takashi Iwai
tiwai at suse.de
Mon Jun 14 09:52:01 CEST 2021
On Mon, 14 Jun 2021 09:17:10 +0200,
Jaroslav Kysela wrote:
>
> The str variable should be always initialized before use even if
> the switch covers all cases. This is a minimalistic fix: Assign NULL,
> the sprintf() may print '(null)' if something is corrupted.
>
> Signed-off-by: Jaroslav Kysela <perex at perex.cz>
Thanks, applied.
Takashi
More information about the Alsa-devel
mailing list