[pulseaudio-discuss] [PATCH] stream-interaction: Fix crash in case of invalid argument for volume
Sangchul Lee
sangchul1011 at gmail.com
Tue Mar 29 17:21:40 UTC 2016
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 at samsung.com>
---
src/modules/stream-interaction.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/modules/stream-interaction.c b/src/modules/stream-interaction.c
index 5df17c4..6dd33c5 100644
--- a/src/modules/stream-interaction.c
+++ b/src/modules/stream-interaction.c
@@ -307,7 +307,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;
u->name = m->name;
--
2.1.4
More information about the pulseaudio-discuss
mailing list