diff --git a/src/message_cache.cc b/src/message_cache.cc index f7b6989..794a107 100644 --- a/src/message_cache.cc +++ b/src/message_cache.cc @@ -478,7 +478,7 @@ namespace pEp { PEP_enc_format enc_format, PEP_encrypt_flags_t flags) { - ::message *_msg; + ::message *_msg{ nullptr }; std::string _id = cacheID(src); { std::lock_guard l(_mtx); @@ -509,7 +509,7 @@ namespace pEp { PEP_enc_format enc_format, PEP_encrypt_flags_t flags) { - ::message *_msg; + ::message *_msg{ nullptr }; std::string _id = cacheID(src); { std::lock_guard l(_mtx);