[alsa-devel] [PATCH alsa-lib] pcm: hw: fix to initialize function local variable

Takashi Iwai tiwai at suse.de
Fri Jun 30 12:57:07 CEST 2017


On Fri, 30 Jun 2017 12:50:00 +0200,
Takashi Sakamoto wrote:
> 
> This commit is to fix below warning.
> 
> pcm_hw.c: In function ‘snd1_pcm_hw_open_fd’:
> pcm_hw.c:955:33: warning: ‘mmap_control’ may be used uninitialized in this function [-Wmaybe-uninitialized]
>   if (mmap_control == MAP_FAILED || mmap_control == NULL) {
>                                  ^
> pcm_hw.c:946:31: note: ‘mmap_control’ was declared here
>   struct snd_pcm_mmap_control *mmap_control;
>                                ^~~~~~~~~~~~
> 
> Signed-off-by: Takashi Sakamoto <o-takashi at sakamocchi.jp>

Applied, thanks.


Takashi


More information about the Alsa-devel mailing list