diff options
author | saturneric <[email protected]> | 2024-12-03 09:08:52 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-03 09:08:52 +0000 |
commit | 46d376d5ba64dd7856709f4ac9f6dd22ed934144 (patch) | |
tree | b80211455e70e7bebd6d92f8be6d3239d0cd9765 /src/core/utils/GpgUtils.cpp | |
parent | fix: integrated modules loading path (diff) | |
download | GpgFrontend-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.cpp | 2 |
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) { |