From 84c2ebd2080fc977db086c335f5e344cbfd32109 Mon Sep 17 00:00:00 2001 From: Eugene Smirnov Date: Tue, 23 Jul 2019 12:59:19 +0200 Subject: [PATCH] Store a copy of Config in Aktualizr object We shouldn't expect Config object to be alive after returning from Aktualizr constructor Signed-off-by: Eugene Smirnov --- src/libaktualizr/primary/aktualizr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libaktualizr/primary/aktualizr.h b/src/libaktualizr/primary/aktualizr.h index c0348c84d4..d6505bf4e5 100644 --- a/src/libaktualizr/primary/aktualizr.h +++ b/src/libaktualizr/primary/aktualizr.h @@ -166,7 +166,7 @@ class Aktualizr { private: static void systemSetup(); - Config& config_; + Config config_; std::shared_ptr storage_; std::shared_ptr sig_; api::CommandQueue api_queue_;