aboutsummaryrefslogtreecommitdiff
path: root/src/filesys.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/filesys.cpp')
-rw-r--r--src/filesys.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filesys.cpp b/src/filesys.cpp
index 28df32054..7edb60bcd 100644
--- a/src/filesys.cpp
+++ b/src/filesys.cpp
@@ -639,7 +639,7 @@ std::string RemoveLastPathComponent(const std::string &path,
std::string *removed, int count)
{
if(removed)
- *removed = "";
+ removed->clear();
size_t remaining = path.size();