From 9ccfadfb541063dcd72e26cdd2b02f96fb76964f Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 20 Oct 2021 10:35:26 +0200 Subject: [PATCH] sys: Fixed uninitialized variable --- plugins/libimhex/include/hex/helpers/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/libimhex/include/hex/helpers/utils.hpp b/plugins/libimhex/include/hex/helpers/utils.hpp index bc3e1e5ef..d89e19d1c 100644 --- a/plugins/libimhex/include/hex/helpers/utils.hpp +++ b/plugins/libimhex/include/hex/helpers/utils.hpp @@ -127,7 +127,7 @@ namespace hex { default: __builtin_unreachable(); } - T result; + T result = 0; std::memcpy(&result, &swapped, size); return result;