summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/content_archive.cpp
diff options
context:
space:
mode:
authorMai <mathew1800@gmail.com>2022-06-14 14:34:16 +0200
committerGitHub <noreply@github.com>2022-06-14 14:34:16 +0200
commita3b12e3809e388e9c9b0608b14d85c0985e412c3 (patch)
tree135226fe24596286c54bf9c5c4a12868c3c55e90 /src/core/file_sys/content_archive.cpp
parentMerge pull request #8459 from Morph1984/wextra-gcc (diff)
parentkernel: fix passthrough of local captures in lambda (diff)
downloadyuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar
yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.gz
yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.bz2
yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.lz
yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.xz
yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.tar.zst
yuzu-a3b12e3809e388e9c9b0608b14d85c0985e412c3.zip
Diffstat (limited to 'src/core/file_sys/content_archive.cpp')
-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 93f784418..78e56bbbd 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) {