mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
stream-interaction: Fix crash in case of invalid argument for volume
In case of invalid argument for volume, the crash occurs in pa_stream_interaction_done(). pa_xnew() is replaced with pa_xnew0() to fix it. Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
This commit is contained in:
parent
b08f38385d
commit
b5e5475d96
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ int pa_stream_interaction_init(pa_module *m, const char* const v_modargs[]) {
|
|||
goto fail;
|
||||
}
|
||||
|
||||
m->userdata = u = pa_xnew(struct userdata, 1);
|
||||
m->userdata = u = pa_xnew0(struct userdata, 1);
|
||||
|
||||
u->core = m->core;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue