diff --git a/src/S3FileSystem.cc b/src/S3FileSystem.cc index 620a80e..78385c6 100644 --- a/src/S3FileSystem.cc +++ b/src/S3FileSystem.cc @@ -229,11 +229,12 @@ int S3FileSystem::Stat(const char *path, struct stat *buff, int opts, std::vector objInfo; std::vector commonPrefixes; std::string ct; - res = listCommand.Results(objInfo, commonPrefixes, ct, errMsg); - if (!res) { - m_log.Log(XrdHTTPServer::Warning, "Stat", "Failed to parse S3 results:", errMsg.c_str()); - return -EIO; - } + res = listCommand.Results(objInfo, commonPrefixes, ct, errMsg); + if (!res) { + m_log.Log(XrdHTTPServer::Warning, "Stat", + "Failed to parse S3 results:", errMsg.c_str()); + return -EIO; + } bool foundObj = false; size_t objSize = 0;