diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 14:44:02 -0600 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2024-09-24 14:44:02 -0600 |
commit | fa29db94ce8d53d815403f946a5a8c635278fe59 (patch) | |
tree | 7da8f3d915e9bfc683cb70a7237e746e44a7333c | |
parent | e980a44cea166e765e0dee98e8202a54cde1b142 (diff) |
coroutine_chan.h: Fix initialization
-rw-r--r-- | coroutine_chan.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coroutine_chan.h b/coroutine_chan.h index f31586a..a3621a6 100644 --- a/coroutine_chan.h +++ b/coroutine_chan.h @@ -43,7 +43,7 @@ (ch)->ok_to_write = false; \ cr_unpause((ch)->reader); \ } else { /* blocking */ \ - cid_t next; \ + cid_t next = 0; \ if ((ch)->writer) { \ *((ch)->tail_writer) = cr_getcid(); \ (ch)->tail_writer = &next; \ @@ -76,7 +76,7 @@ (ch)->ok_to_read = false; \ cr_unpause((ch)->writer; \ } else { /* blocking */ \ - cid_t next; \ + cid_t next = 0; \ if ((ch)->reader) { \ *((ch)->tail_reader) = cr_getcid(); \ (ch)->tail_reader = &next; \ |