Don't use move on return value.

This commit is contained in:
Brandon Wright 2019-01-18 15:14:32 -06:00
parent 848bb64d52
commit 0e559cd046
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ static std::string canonicalize(const std::string &noncanonical)
char *temp = realpath(noncanonical.c_str(), NULL);
std::string filename_string(temp);
free(temp);
return std::move(filename_string);
return filename_string;
}
// filename must be canonical