mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-09-27 16:59:01 +00:00
cppcheck x2
This commit is contained in:
parent
d4339cf7b7
commit
ee8a14f067
@ -942,10 +942,9 @@ int S3fsCred::CheckSsoCacheKey(std::string& sso_cache_key){
|
|||||||
S3FS_PRN_INFO("Use the profile %s to connect in s3", profile.c_str());
|
S3FS_PRN_INFO("Use the profile %s to connect in s3", profile.c_str());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
// Remove 'profile '
|
|
||||||
std::string filter_line;
|
|
||||||
std::size_t found = line.find(profile_prefix);
|
std::size_t found = line.find(profile_prefix);
|
||||||
if (found != std::string::npos){
|
if (found != std::string::npos){
|
||||||
|
std::string filter_line;
|
||||||
line.replace(found, profile_prefix.size(), filter_line);
|
line.replace(found, profile_prefix.size(), filter_line);
|
||||||
}
|
}
|
||||||
profile = line.substr(1, line.size() - 2);
|
profile = line.substr(1, line.size() - 2);
|
||||||
|
Loading…
Reference in New Issue
Block a user