mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-01 22:58:49 -04:00
rawmidi: initialize the reserved space in snd_rawmidi_params_default()
BugLink: https://github.com/alsa-project/alsa-lib/issues/178 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This commit is contained in:
parent
1aeea94ce8
commit
a1e91720cc
1 changed files with 1 additions and 0 deletions
|
|
@ -164,6 +164,7 @@ static int snd_rawmidi_params_default(snd_rawmidi_t *rawmidi, snd_rawmidi_params
|
|||
params->avail_min = 1;
|
||||
params->no_active_sensing = 1;
|
||||
params->mode = 0;
|
||||
memset(params->reserved, 0, sizeof(params->reserved));
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue