[pulseaudio-commits] src/modules

Tanu Kaskinen tanuk at kemper.freedesktop.org
Mon Oct 6 03:32:48 PDT 2014


 src/modules/module-switch-on-connect.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8fb5e7c32aa52947087657dbbc2e2aa44c6064b4
Author: Tanu Kaskinen <tanu.kaskinen at linux.intel.com>
Date:   Mon Oct 6 13:30:35 2014 +0300

    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.

diff --git a/src/modules/module-switch-on-connect.c b/src/modules/module-switch-on-connect.c
index 90b86d1..559db9f 100644
--- a/src/modules/module-switch-on-connect.c
+++ b/src/modules/module-switch-on-connect.c
@@ -182,7 +182,7 @@ int pa__init(pa_module*m) {
         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... */
     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);



More information about the pulseaudio-commits mailing list