aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/utils/GpgUtils.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2024-12-03 09:08:52 +0000
committersaturneric <[email protected]>2024-12-03 09:08:52 +0000
commit46d376d5ba64dd7856709f4ac9f6dd22ed934144 (patch)
treeb80211455e70e7bebd6d92f8be6d3239d0cd9765 /src/core/utils/GpgUtils.cpp
parentfix: integrated modules loading path (diff)
downloadGpgFrontend-46d376d5ba64dd7856709f4ac9f6dd22ed934144.tar.gz
GpgFrontend-46d376d5ba64dd7856709f4ac9f6dd22ed934144.zip
fix: discovered issues by testing
Diffstat (limited to 'src/core/utils/GpgUtils.cpp')
-rw-r--r--src/core/utils/GpgUtils.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/utils/GpgUtils.cpp b/src/core/utils/GpgUtils.cpp
index 957b8910..29b150bd 100644
--- a/src/core/utils/GpgUtils.cpp
+++ b/src/core/utils/GpgUtils.cpp
@@ -185,6 +185,8 @@ auto GPGFRONTEND_CORE_EXPORT GetGpgKeyDatabaseInfos()
#else
gpg_key_database_info_cache.reserve(
static_cast<qsizetype>(context_index_list.size()));
+ std::fill_n(std::back_inserter(gpg_key_database_info_cache),
+ context_index_list.size(), KeyDatabaseInfo{});
#endif
for (auto& context_index : context_index_list) {