diff options
author | rsc <devnull@localhost> | 2004-01-09 00:04:55 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-01-09 00:04:55 +0000 |
commit | b214663d3454a2f81b418dde4b764f03563c91fb (patch) | |
tree | 08e64a9dfbe1c2f2c064a8f1bcb3131fd1c90ce4 /src/libmux | |
parent | d0bc889a8aa8cd80ec5a048b5825c82bd34edefb (diff) | |
download | plan9port-b214663d3454a2f81b418dde4b764f03563c91fb.tar.gz plan9port-b214663d3454a2f81b418dde4b764f03563c91fb.tar.bz2 plan9port-b214663d3454a2f81b418dde4b764f03563c91fb.zip |
linux diffs.
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; } |