mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Merge pull request #12575 from n8pjl/werror-nonnull
IOFile: avoid clearing errors on null file struct
This commit is contained in:
@@ -116,7 +116,8 @@ public:
|
||||
void ClearError()
|
||||
{
|
||||
m_good = true;
|
||||
std::clearerr(m_file);
|
||||
if (IsOpen())
|
||||
std::clearerr(m_file);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user