summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index a0e6651..5c7fa4d 100644
--- a/util.c
+++ b/util.c
@@ -288,6 +288,7 @@ static void path_full(char const *dir, char const *relpath, char *abspath, size_
} else if (component_len == 2 && relpath[0] == '.' && relpath[1] == '.') {
// ..
char *lastsep = strrchr(abspath, PATH_SEPARATOR);
+ assert(lastsep);
if (lastsep == abspath)
lastsep[1] = '\0';
else