summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--coroutine_chan.h4
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; \