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:
Sangchul Lee 2016-03-30 02:21:40 +09:00 committed by Tanu Kaskinen
parent b08f38385d
commit b5e5475d96

View file

@ -329,7 +329,7 @@ int pa_stream_interaction_init(pa_module *m, const char* const v_modargs[]) {
goto fail; goto fail;
} }
m->userdata = u = pa_xnew(struct userdata, 1); m->userdata = u = pa_xnew0(struct userdata, 1);
u->core = m->core; u->core = m->core;