We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d15a50 commit 8e10b7aCopy full SHA for 8e10b7a
imgui.cpp
@@ -2250,16 +2250,12 @@ void ImGuiStorage::SetAllInt(int v)
2250
// Helper: Parse and apply text filters. In format "aaaaa[,bbbb][,ccccc]"
2251
ImGuiTextFilter::ImGuiTextFilter(const char* default_filter)
2252
{
2253
+ memset(this, 0, sizeof(*this));
2254
if (default_filter)
2255
2256
ImStrncpy(InputBuf, default_filter, IM_ARRAYSIZE(InputBuf));
2257
Build();
2258
}
- else
2259
- {
2260
- InputBuf[0] = 0;
2261
- CountGrep = 0;
2262
- }
2263
2264
2265
bool ImGuiTextFilter::Draw(const char* label, float width)
0 commit comments