aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Utility/Path.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/Utility/Path.hs b/Utility/Path.hs
index 72d43784f..9f0737fe8 100644
--- a/Utility/Path.hs
+++ b/Utility/Path.hs
@@ -159,6 +159,7 @@ relPathDirToFileAbs from to
prop_relPathDirToFile_basics :: FilePath -> FilePath -> Bool
prop_relPathDirToFile_basics from to
+ | null from || null to = True
| from == to = null r
| otherwise = not (null r)
where