Skip to content

Commit

Permalink
Minor fix to sastisfy PVS-Studio warning. (amend, 2nd attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Apr 12, 2022
1 parent 6d15a50 commit 8e10b7a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions imgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2250,16 +2250,12 @@ void ImGuiStorage::SetAllInt(int v)
// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
{
memset(this, 0, sizeof(*this));
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 8e10b7a

Please sign in to comment.