From 038da00e799b4bf3af824075a260083c56392964 Mon Sep 17 00:00:00 2001 From: Herman Semenov Date: Tue, 6 Sep 2022 13:21:09 +0300 Subject: Code optimizations / refactor (#12704) Co-authored-by: SmallJoker Co-authored-by: sfan5 --- src/filesys.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/filesys.cpp') 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(); -- cgit v1.2.3