[pulseaudio-commits] src/pulse
Tanu Kaskinen
tanuk at kemper.freedesktop.org
Sat Jan 12 17:26:50 PST 2013
src/pulse/operation.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 7ab0885795faf5e0e3447d2bfbfa102dda400f40
Author: Tanu Kaskinen <tanuk at iki.fi>
Date: Sun Jan 13 03:15:23 2013 +0200
pulse: Initialize pa_operation objects to all-zero.
state_callback and state_userdata fields were not initialized.
diff --git a/src/pulse/operation.c b/src/pulse/operation.c
index 8fdbea7..917a8a9 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;
More information about the pulseaudio-commits
mailing list