From 6ca7d5ec27142e244e18d7bc8ec6270bd049d834 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Sun, 29 May 2022 09:57:59 +0000 Subject: [PATCH] Fixed an error which reported by cppcheck 2.8 --- src/fdcache_fdinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fdcache_fdinfo.cpp b/src/fdcache_fdinfo.cpp index a14f0ff..58524e2 100644 --- a/src/fdcache_fdinfo.cpp +++ b/src/fdcache_fdinfo.cpp @@ -609,13 +609,13 @@ ssize_t PseudoFdInfo::UploadBoundaryLastUntreatedArea(const char* path, headers_ // Multipart uploading hasn't started yet, so start it. // S3fsCurl s3fscurl(true); - std::string upload_id; + std::string tmp_upload_id; int result; - if(0 != (result = s3fscurl.PreMultipartPostRequest(path, meta, upload_id, true))){ + if(0 != (result = s3fscurl.PreMultipartPostRequest(path, meta, tmp_upload_id, true))){ S3FS_PRN_ERR("failed to setup multipart upload(create upload id) by errno(%d)", result); return result; } - if(!InitialUploadInfo(upload_id, AutoLock::ALREADY_LOCKED)){ + if(!InitialUploadInfo(tmp_upload_id, AutoLock::ALREADY_LOCKED)){ S3FS_PRN_ERR("failed to setup multipart upload(set upload id to object)"); return result; }