diff options
| author | tylov <[email protected]> | 2023-08-13 17:38:10 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-08-13 17:38:10 +0200 |
| commit | 972aa23a674f743c187e82444c2271aaa3e9cd06 (patch) | |
| tree | b39b5e9e36c0251a06d40090a26c8e8da5a2167e /misc/examples/coroutines/filetask.c | |
| parent | 1802558d41112e99d965000c97c45ebf7984d70c (diff) | |
| download | STC-modified-972aa23a674f743c187e82444c2271aaa3e9cd06.tar.gz STC-modified-972aa23a674f743c187e82444c2271aaa3e9cd06.zip | |
Removed csview_null - use csview_init().
Diffstat (limited to 'misc/examples/coroutines/filetask.c')
| -rw-r--r-- | misc/examples/coroutines/filetask.c | 2 |
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 |
