Address warnings from clang-tidy 11 (#1470)

This commit is contained in:
Andrew Gaul
2020-11-09 21:15:20 +09:00
committed by GitHub
parent d96a08d4ad
commit 543231c9f2
5 changed files with 10 additions and 8 deletions

View File

@ -180,9 +180,7 @@ bool S3fsLog::LowSetLogfile(const char* pfile)
fclose(newfp);
return false;
}
if(S3fsLog::plogfile){
delete S3fsLog::plogfile;
}
delete S3fsLog::plogfile;
S3fsLog::plogfile = new std::string(pfile);
}
return true;