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 <[email protected]>
  • Loading branch information
Eugene Smirnov committed Jul 23, 2019
1 parent f85af13 commit 1ec2ecf
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 1ec2ecf

Please sign in to comment.