From c723d27a4a5841aa791c00e41b50823ce4cff0f6 Mon Sep 17 00:00:00 2001 From: Brian P Bockelman Date: Wed, 22 May 2024 22:50:50 -0500 Subject: [PATCH] Update src/S3FileSystem.cc Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/S3FileSystem.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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;