diff options
Diffstat (limited to 'src/libmux')
-rw-r--r-- | src/libmux/mux.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libmux/mux.c b/src/libmux/mux.c index bc632602..2d5074ee 100644 --- a/src/libmux/mux.c +++ b/src/libmux/mux.c @@ -19,7 +19,9 @@ static void dequeue(Mux*, Muxrpc*); void muxinit(Mux *mux) { + memset(&mux->lk, 0, sizeof(Mux)-offsetof(Mux, lk)); mux->tagrend.l = &mux->lk; + mux->rpcfork.l = &mux->lk; mux->sleep.next = &mux->sleep; mux->sleep.prev = &mux->sleep; } |