summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/coroutines/filetask.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/coroutines/filetask.c')
-rw-r--r--misc/examples/coroutines/filetask.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/coroutines/filetask.c b/misc/examples/coroutines/filetask.c
index 74388359..9650cb60 100644
--- a/misc/examples/coroutines/filetask.c
+++ b/misc/examples/coroutines/filetask.c
@@ -17,7 +17,7 @@ int file_read(struct file_read* co, cco_runtime* rt)
{
cco_routine (co) {
co->fp = fopen(co->path, "r");
- co->line = cstr_null;
+ co->line = cstr_init();
while (true) {
// emulate async io: await 10ms per line