[PATCH] thread-mq: Initialize thread_mainloop to NULL if not in use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes a crash when unloading module-zeroconf-publish.

Signed-off-by: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
---
 src/pulsecore/thread-mq.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pulsecore/thread-mq.c b/src/pulsecore/thread-mq.c
index 0759586..d34b22b 100644
--- a/src/pulsecore/thread-mq.c
+++ b/src/pulsecore/thread-mq.c
@@ -126,6 +126,8 @@ void pa_thread_mq_init(pa_thread_mq *q, pa_mainloop_api *mainloop, pa_rtpoll *rt
     pa_assert(mainloop);
 
     q->main_mainloop = mainloop;
+    q->thread_mainloop = NULL;
+
     pa_assert_se(q->inq = pa_asyncmsgq_new(0));
     pa_assert_se(q->outq = pa_asyncmsgq_new(0));
 
-- 
1.8.5.1



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux