mirror of https://github.com/WerWolv/ImHex.git
sys: Fixed uninitialized variable
This commit is contained in:
parent
8b6de30e92
commit
9ccfadfb54
|
@ -127,7 +127,7 @@ namespace hex {
|
|||
default: __builtin_unreachable();
|
||||
}
|
||||
|
||||
T result;
|
||||
T result = 0;
|
||||
std::memcpy(&result, &swapped, size);
|
||||
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue