Minor tweaks to reduce false positive of PVS Studio static analyzer.

This commit is contained in:
omar
2019-02-06 13:08:30 +01:00
parent 5bdc7d7a6f
commit f366828dd2
5 changed files with 13 additions and 10 deletions

View File

@ -8863,7 +8863,7 @@ void ImGui::LogToFile(int max_depth, const char* filename)
g.LogFile = ImFileOpen(filename, "ab");
if (!g.LogFile)
{
IM_ASSERT(g.LogFile != NULL); // Consider this an error
IM_ASSERT(0);
return;
}
g.LogEnabled = true;