diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:05:22 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-10-12 14:05:22 -0400 |
| commit | 3cd3b20f58e9d2c6463d503be09e5d4cfaadee6c (patch) | |
| tree | 9b7120a4969a38793ecff3aab549b463c7dcf822 /src/stdlib/paths.c | |
| parent | bd190ac0a84eefa3174c04ce1fe2059aed6f2d1b (diff) | |
Code cleanup and fixing minor issues
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 b6152ed4..76d0d629 100644 --- a/src/stdlib/paths.c +++ b/src/stdlib/paths.c @@ -130,7 +130,8 @@ Path_t Path$_concat(int n, Path_t items[n]) { public Path_t Path$resolved(Path_t path, Path_t relative_to) { - if (path.type == PATHTYPE_RELATIVE && !(relative_to.type == PATHTYPE_RELATIVE && relative_to.components.length == 0)) { + if (path.type == PATHTYPE_RELATIVE + && !(relative_to.type == PATHTYPE_RELATIVE && relative_to.components.length == 0)) { Path_t result = {.type = relative_to.type}; result.components = relative_to.components; LIST_INCREF(result.components); |
