Re: [PATCH] alsa: control_led - fix initialization in the mode show callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxx>

Thanks, applied.


Takashi



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux