aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-06-07 18:56:38 -0400
committerLiam <byteslice@airmail.cc>2022-06-13 20:09:30 -0400
commitf3fd1038bb6879293ffd15e04bce59b4a9ccd6f3 (patch)
tree249f96ff849b6a509d46295e78ae9c3f91d9ec20 /src/core
parent72abaf896fd2a5fe70b59fc53ef23c31a76dca8b (diff)
general: fix compilation on GCC 12
Diffstat (limited to 'src/core')
-rw-r--r--src/core/file_sys/content_archive.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/content_archive.cpp b/src/core/file_sys/content_archive.cpp
index 93f7844183..78e56bbbd2 100644
--- a/src/core/file_sys/content_archive.cpp
+++ b/src/core/file_sys/content_archive.cpp
@@ -419,7 +419,7 @@ std::optional<Core::Crypto::Key128> NCA::GetKeyAreaKey(NCASectionCryptoType type
Core::Crypto::Mode::ECB);
cipher.Transcode(key_area.data(), key_area.size(), key_area.data(), Core::Crypto::Op::Decrypt);
- Core::Crypto::Key128 out;
+ Core::Crypto::Key128 out{};
if (type == NCASectionCryptoType::XTS) {
std::copy(key_area.begin(), key_area.begin() + 0x10, out.begin());
} else if (type == NCASectionCryptoType::CTR || type == NCASectionCryptoType::BKTR) {