Merge pull request #12575 from n8pjl/werror-nonnull
IOFile: avoid clearing errors on null file struct
This commit is contained in:
commit
a583526a1c
|
@ -116,7 +116,8 @@ public:
|
|||
void ClearError()
|
||||
{
|
||||
m_good = true;
|
||||
std::clearerr(m_file);
|
||||
if (IsOpen())
|
||||
std::clearerr(m_file);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue