From 7ab0885795faf5e0e3447d2bfbfa102dda400f40 Mon Sep 17 00:00:00 2001 From: Tanu Kaskinen Date: Sun, 13 Jan 2013 03:15:23 +0200 Subject: [PATCH] pulse: Initialize pa_operation objects to all-zero. state_callback and state_userdata fields were not initialized. --- src/pulse/operation.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pulse/operation.c b/src/pulse/operation.c index 8fdbea71d..917a8a958 100644 --- a/src/pulse/operation.c +++ b/src/pulse/operation.c @@ -40,10 +40,11 @@ pa_operation *pa_operation_new(pa_context *c, pa_stream *s, pa_operation_cb_t cb if (!(o = pa_flist_pop(PA_STATIC_FLIST_GET(operations)))) o = pa_xnew(pa_operation, 1); + pa_zero(*o); + PA_REFCNT_INIT(o); o->context = c; o->stream = s; - o->private = NULL; o->state = PA_OPERATION_RUNNING; o->callback = cb;