From 8c6f0e8ab423f508fc0ce0532c1006b13fc35089 Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 5 Mar 2004 05:58:48 +0000 Subject: Small bug fixes. --- src/libthread/channel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libthread') diff --git a/src/libthread/channel.c b/src/libthread/channel.c index d0fff4a6..48fe78c7 100644 --- a/src/libthread/channel.c +++ b/src/libthread/channel.c @@ -201,8 +201,8 @@ _threadnalt++; }else{ altexec(a, s); /* unlocks chanlock, does splx */ } - t->chan = Channone; -_threadnalt++; + if(t) + t->chan = Channone; return a - alts; } -- cgit v1.2.3