summaryrefslogtreecommitdiff
path: root/Utilities/std/cm/bits/fs_path.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Utilities/std/cm/bits/fs_path.cxx')
-rw-r--r--Utilities/std/cm/bits/fs_path.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/std/cm/bits/fs_path.cxx b/Utilities/std/cm/bits/fs_path.cxx
index 808999899c..1f52878029 100644
--- a/Utilities/std/cm/bits/fs_path.cxx
+++ b/Utilities/std/cm/bits/fs_path.cxx
@@ -847,7 +847,7 @@ cm::string_view path::get_filename_fragment(filename_fragment fragment) const
{
auto file = this->get_filename();
- if (file == "." || file == ".." || file.empty()) {
+ if (file.empty() || file == "." || file == "..") {
return fragment == filename_fragment::stem ? file : cm::string_view{};
}