summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coroutines/cotasks1.c
diff options
context:
space:
mode:
authortylov <[email protected]>2023-08-13 17:38:10 +0200
committertylov <[email protected]>2023-08-13 17:38:10 +0200
commit972aa23a674f743c187e82444c2271aaa3e9cd06 (patch)
treeb39b5e9e36c0251a06d40090a26c8e8da5a2167e /misc/examples/coroutines/cotasks1.c
parent1802558d41112e99d965000c97c45ebf7984d70c (diff)
downloadSTC-modified-972aa23a674f743c187e82444c2271aaa3e9cd06.tar.gz
STC-modified-972aa23a674f743c187e82444c2271aaa3e9cd06.zip
Removed csview_null - use csview_init().
Diffstat (limited to 'misc/examples/coroutines/cotasks1.c')
-rw-r--r--misc/examples/coroutines/cotasks1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/coroutines/cotasks1.c b/misc/examples/coroutines/cotasks1.c
index 7df4eb34..db9632e6 100644
--- a/misc/examples/coroutines/cotasks1.c
+++ b/misc/examples/coroutines/cotasks1.c
@@ -43,7 +43,7 @@ struct produce_items {
int produce_items(struct produce_items* p)
{
cco_routine (p) {
- p->str = cstr_null;
+ p->str = cstr_init();
while (true)
{
cco_await(next_value(&p->next) != CCO_AWAIT);