aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/makefile/functions.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/makefile/functions.rs b/src/makefile/functions.rs
index 2098334..712b944 100644
--- a/src/makefile/functions.rs
+++ b/src/makefile/functions.rs
@@ -241,6 +241,7 @@ mod file_name {
Path::new(word)
.parent()
.and_then(Path::to_str)
+ .filter(|x| !x.is_empty())
.unwrap_or("./")
})
.collect::<Vec<_>>();