Skip to content

Commit

Permalink
Minor fix to sastisfy PVS-Studio warning. (amend, 3nd attempt: this i…
Browse files Browse the repository at this point in the history
…s a false positive from PVS studio)
  • Loading branch information
ocornut committed Apr 12, 2022
1 parent 6d15a50 commit fc203c7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions imgui.cpp
Expand Up @@ -2248,18 +2248,15 @@ void ImGuiStorage::SetAllInt(int v)
//-----------------------------------------------------------------------------

// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter) //-V1077
{
InputBuf[0] = 0;
CountGrep = 0;
if (default_filter)
{
ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf));
Build();
}
else
{
InputBuf[0] = 0;
CountGrep = 0;
}
}

bool ImGuiTextFilter::Draw(const char* label, float width)
Expand Down

0 comments on commit fc203c7

Please sign in to comment.