Merge pull request #12575 from n8pjl/werror-nonnull

IOFile: avoid clearing errors on null file struct
This commit is contained in:
Mai 2024-02-13 07:43:19 -05:00 committed by GitHub
commit a583526a1c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -116,7 +116,8 @@ public:
void ClearError()
{
m_good = true;
std::clearerr(m_file);
if (IsOpen())
std::clearerr(m_file);
}
private: