mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
switch-on-connect: Initialize userdata contents to zero
This fixes userdata.only_from_unavailable being uninitialized in case the user doesn't give the value in modargs.
This commit is contained in:
parent
f460676ee0
commit
8fb5e7c32a
1 changed files with 1 additions and 1 deletions
|
|
@ -182,7 +182,7 @@ int pa__init(pa_module*m) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
m->userdata = u = pa_xnew(struct userdata, 1);
|
m->userdata = u = pa_xnew0(struct userdata, 1);
|
||||||
|
|
||||||
/* A little bit later than module-rescue-streams... */
|
/* A little bit later than module-rescue-streams... */
|
||||||
u->sink_put_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SINK_PUT], PA_HOOK_LATE+30, (pa_hook_cb_t) sink_put_hook_callback, u);
|
u->sink_put_slot = pa_hook_connect(&m->core->hooks[PA_CORE_HOOK_SINK_PUT], PA_HOOK_LATE+30, (pa_hook_cb_t) sink_put_hook_callback, u);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue