Additional fix for #2276(Convert BodyData to std::string)

This commit is contained in:
Takeshi Nakatani 2023-08-17 15:06:08 +00:00
parent 2518ff3568
commit 1c1e05d084

View File

@ -4011,7 +4011,7 @@ int S3fsCurl::MultipartListRequest(std::string& body)
} }
int result; int result;
if(0 == (result = RequestPerform()) && 0 < bodydata.size()){ if(0 == (result = RequestPerform()) && !bodydata.empty()){
body.swap(bodydata); body.swap(bodydata);
}else{ }else{
body = ""; body = "";