diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:19:59 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:19:59 -0400 |
| commit | 6e5fb2ac4e5b780c74f310446ddd80d571170b0d (patch) | |
| tree | 587241a69065c01b890d7ae70a37af08bba646b1 /src/stdlib/paths.c | |
| parent | 3cd3b20f58e9d2c6463d503be09e5d4cfaadee6c (diff) | |
More code cleanups
Diffstat (limited to 'src/stdlib/paths.c')
| -rw-r--r-- | src/stdlib/paths.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stdlib/paths.c b/src/stdlib/paths.c index 76d0d629..73f62975 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -330,10 +330,11 @@ OptionalList_t Path$read_bytes(Path_t path, OptionalInt_t count) { // be closed by GC finalizers. GC_gcollect(); fd = open(path_str, O_RDONLY); - if (fd == -1) return NONE_LIST; } } + if (fd == -1) return NONE_LIST; + struct stat sb; if (fstat(fd, &sb) != 0) return NONE_LIST; |
