From cdd037ec64f5b2f27e3fdfba211fba5b44a0a2b3 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 9 Jul 2024 23:27:07 +0200 Subject: [PATCH] initialize arrays --- src/devices/IKeyboard.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/devices/IKeyboard.hpp b/src/devices/IKeyboard.hpp index d288c8ba..2980a5b1 100644 --- a/src/devices/IKeyboard.hpp +++ b/src/devices/IKeyboard.hpp @@ -82,8 +82,8 @@ class IKeyboard : public IHID { uint32_t depressed = 0, latched = 0, locked = 0, group = 0; } modifiersState; - std::array ledIndexes; - std::array modIndexes; + std::array ledIndexes = {0}; + std::array modIndexes = {0}; uint32_t leds = 0; std::string hlName = "";