mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-31 22:25:35 -04:00
Clear sw_params struct at initialization
Do zero-clear the sw_params struct in hw_params, just to be sure. This makes valgrind happy.
This commit is contained in:
parent
554fe08747
commit
c67584ec65
1 changed files with 1 additions and 0 deletions
|
|
@ -2288,6 +2288,7 @@ int _snd_pcm_hw_params(snd_pcm_t *pcm, snd_pcm_hw_params_t *params)
|
|||
pcm->fifo_size = params->fifo_size;
|
||||
|
||||
/* Default sw params */
|
||||
memset(&sw, 0, sizeof(sw));
|
||||
snd_pcm_sw_params_default(pcm, &sw);
|
||||
err = snd_pcm_sw_params(pcm, &sw);
|
||||
assert(err >= 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue