aboutsummaryrefslogtreecommitdiff
path: root/include/Path.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-04-26 18:37:00 +0200
committerdec05eba <dec05eba@protonmail.com>2021-04-26 18:37:00 +0200
commit76e1aebbe075287a8297194b38343467c76dd964 (patch)
tree0afa513ab80f2247686bbb62e5d2a6fa9aabc70c /include/Path.hpp
parent8b5901000e9073d9ff6a3a86cd7c0e0172de7f5a (diff)
Fix soundcloud (fetch client id), add authors to mangakatana, some other fixes
Diffstat (limited to 'include/Path.hpp')
-rw-r--r--include/Path.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/Path.hpp b/include/Path.hpp
index 19c8eb9..571fb9e 100644
--- a/include/Path.hpp
+++ b/include/Path.hpp
@@ -39,7 +39,7 @@ namespace QuickMedia {
Path parent() {
size_t slash_index = data.rfind('/');
- if(slash_index != std::string::npos || slash_index == 0)
+ if(slash_index != std::string::npos && slash_index > 0)
return Path(data.substr(0, slash_index));
return Path("/");
}