diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-11-21 22:20:56 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-11-21 22:20:56 -0500 |
| commit | 0c93c3c614aa5b955b40e805226d8609c85d0923 (patch) | |
| tree | 5872390b74667e3549b593b844699a894b0fb6dc /src/stdlib/paths.c | |
| parent | 3c80527f5d788ef80abe5cd3a28aabe168a6d69c (diff) | |
Bugfix for empty file lines
Diffstat (limited to 'src/stdlib/paths.c')
| -rw-r--r-- | src/stdlib/paths.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index 704421c2..22effad7 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -718,7 +718,7 @@ OptionalList_t Path$lines(Path_t path) { if (f == NULL) return NONE_LIST; - List_t lines = {}; + List_t lines = EMPTY_LIST; for (OptionalText_t line; (line = _next_line(&f)).tag != TEXT_NONE;) { List$insert(&lines, &line, I(0), sizeof(line)); } |
