From f3b96d7881fa8edcc3b1286a7e085c6e0093e229 Mon Sep 17 00:00:00 2001 From: heck Date: Thu, 3 Mar 2022 01:02:01 +0100 Subject: [PATCH] passphrase_cache: uninitialized var --- src/passphrase_cache.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/passphrase_cache.hxx b/src/passphrase_cache.hxx index 3bdce8d..2e33323 100644 --- a/src/passphrase_cache.hxx +++ b/src/passphrase_cache.hxx @@ -10,7 +10,7 @@ namespace pEp { template PEP_STATUS PassphraseCache::api(PEP_STATUS f(PEP_SESSION, A...), PEP_SESSION session, A... a) { - PEP_STATUS status; + PEP_STATUS status{ PEP_STATUS_OK }; for_each_passphrase([&](std::string passphrase) { status = ::config_passphrase(session, passphrase.c_str());