aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-11-21 22:20:56 -0500
committerBruce Hill <bruce@bruce-hill.com>2025-11-21 22:20:56 -0500
commit0c93c3c614aa5b955b40e805226d8609c85d0923 (patch)
tree5872390b74667e3549b593b844699a894b0fb6dc /src
parent3c80527f5d788ef80abe5cd3a28aabe168a6d69c (diff)
Bugfix for empty file lines
Diffstat (limited to 'src')
-rw-r--r--src/stdlib/paths.c2
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));
}