From e52c4d9dc3f965856f69b2f54f71724ea2997cdc Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Thu, 22 Feb 2024 00:09:31 -0600 Subject: [PATCH] policy_cache.hpp --- src/policy_cache.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/policy_cache.hpp b/src/policy_cache.hpp index f922b9e9..62e1d3ff 100644 --- a/src/policy_cache.hpp +++ b/src/policy_cache.hpp @@ -51,11 +51,13 @@ public: std::string* find(char const *key_) { - std::string rv; + std::string *rv ; + + rv = nullptr; auto func = [&](const auto &v) { - rv = v; + rv = &v; }; _cache.visit(key_,func);