summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-09-24 13:30:39 -0400
committerpommicket <pommicket@gmail.com>2022-09-24 13:38:12 -0400
commitdfde7bff94240172d3a2a037ec0b77871b71bf56 (patch)
treea813f5df460300235e88595c018687a5c743be19 /util.c
parent8965fd92759602c1c92c025344c1bb801bc15043 (diff)
fix go-to-error when build_dir != .
Diffstat (limited to 'util.c')
-rw-r--r--util.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/util.c b/util.c
index 42d9387..71fce88 100644
--- a/util.c
+++ b/util.c
@@ -283,9 +283,6 @@ static void path_full(char const *dir, char const *relpath, char *abspath, size_
str_cpy(abspath, abspath_size, dir);
}
- if (strlen(abspath) == 0 || abspath[strlen(abspath) - 1] != PATH_SEPARATOR)
- str_cat(abspath, abspath_size, PATH_SEPARATOR_STR);
-
while (*relpath) {
size_t component_len = strcspn(relpath, ALL_PATH_SEPARATORS);
char const *component_end = relpath + component_len;