From 28e300da02672c246ed3a03f8709e98084ef8fc4 Mon Sep 17 00:00:00 2001 From: Thibault Jochem Date: Thu, 7 Mar 2019 00:17:39 +0100 Subject: [PATCH] zero-initialize utf8 buffer. --- src/Magnum/Platform/GlfwApplication.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Magnum/Platform/GlfwApplication.cpp b/src/Magnum/Platform/GlfwApplication.cpp index 144d3359d..6316cfee9 100644 --- a/src/Magnum/Platform/GlfwApplication.cpp +++ b/src/Magnum/Platform/GlfwApplication.cpp @@ -503,7 +503,7 @@ void GlfwApplication::setupCallbacks() { if(!(app._flags & Flag::TextInputActive)) return; - char utf8[4]; + char utf8[4]{}; const std::size_t size = Utility::Unicode::utf8(codepoint, utf8); TextInputEvent e{{utf8, size}}; app.textInputEvent(e);