aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/channel.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-05 05:58:48 +0000
committerrsc <devnull@localhost>2004-03-05 05:58:48 +0000
commit8c6f0e8ab423f508fc0ce0532c1006b13fc35089 (patch)
tree7b6447a3f5c0656fb2a505364bc3b44fa3396b18 /src/libthread/channel.c
parent15680d56a6c6e15921d958aa6006825c2cd20bf8 (diff)
downloadplan9port-8c6f0e8ab423f508fc0ce0532c1006b13fc35089.tar.gz
plan9port-8c6f0e8ab423f508fc0ce0532c1006b13fc35089.tar.bz2
plan9port-8c6f0e8ab423f508fc0ce0532c1006b13fc35089.zip
Small bug fixes.
Diffstat (limited to 'src/libthread/channel.c')
-rw-r--r--src/libthread/channel.c4
1 files changed, 2 insertions, 2 deletions
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;
}