| commit | 73722a8bbf80f47ea2df2a212516d1b857ffe29a | [log] [tgz] |
|---|---|---|
| author | rsc <devnull@localhost> | Mon Dec 27 03:49:03 2004 +0000 |
| committer | rsc <devnull@localhost> | Mon Dec 27 03:49:03 2004 +0000 |
| tree | c018c777df2eec8811c71cf9e41d073021c67b13 | |
| parent | e317e37406f8597d42c1e37ab7fcc4f7f901b342 [diff] [blame] |
confine pthreads to pthread.c
diff --git a/src/libthread/channel.c b/src/libthread/channel.c index 3c9614e..c8c9679 100644 --- a/src/libthread/channel.c +++ b/src/libthread/channel.c
@@ -22,6 +22,8 @@ Channel *c; c = malloc(sizeof *c+bufsize*elemsize); + if(c == nil) + sysfatal("chancreate malloc: %r"); memset(c, 0, sizeof *c); c->elemsize = elemsize; c->bufsize = bufsize;