Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
Store a copy of Config in Aktualizr object
Browse files Browse the repository at this point in the history
We shouldn't expect Config object to be alive
after returning from Aktualizr constructor

Signed-off-by: Eugene Smirnov <evgenii.smirnov@here.com>
  • Loading branch information
Eugene Smirnov committed Jul 26, 2019
1 parent c9e90c1 commit 84c2ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libaktualizr/primary/aktualizr.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Aktualizr {
private:
static void systemSetup();

Config& config_;
Config config_;
std::shared_ptr<INvStorage> storage_;
std::shared_ptr<event::Channel> sig_;
api::CommandQueue api_queue_;
Expand Down

0 comments on commit 84c2ebd

Please sign in to comment.