diff --git a/src/cache.cpp b/src/cache.cpp index 2fa0681..4b8cb88 100644 --- a/src/cache.cpp +++ b/src/cache.cpp @@ -607,7 +607,7 @@ bool StatCache::DelStat(const char* key, bool lock_already_held) bool StatCache::GetSymlink(const string& key, string& value) { bool is_delete_cache = false; - string strpath = key; + const string& strpath = key; AutoLock lock(&StatCache::stat_cache_lock);