Skip to content

Commit

Permalink
TestSuite: amend "nav_focus_api_remote" to fix an uninitialized buffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ocornut committed Dec 19, 2024
1 parent b2200c3 commit 5fb8258
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imgui_test_suite/imgui_tests_nav.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2534,7 +2534,7 @@ void RegisterTests_Nav(ImGuiTestEngine* e)
if (ImGui::Button("Focus B")) { set_focus = 1; }
ImGui::End();

char dummy[16];
char dummy[16] = "";
ImGui::Begin("Test Window 1", NULL, ImGuiWindowFlags_NoSavedSettings);
if (set_focus == 0)
ImGui::SetKeyboardFocusHere();
Expand Down

0 comments on commit 5fb8258

Please sign in to comment.