Skip to content

Commit

Permalink
Update core/src/lib/parse_conf.cc
Browse files Browse the repository at this point in the history
Co-authored-by: Andreas Rogge <andreas.rogge@bareos.com>
  • Loading branch information
2 people authored and alaaeddineelamri committed Aug 4, 2022
1 parent cb267bf commit 9c5a833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/lib/parse_conf.cc
Expand Up @@ -526,8 +526,8 @@ void ConfigurationParser::RestoreResourceTable()
// and create a new empty config_resources_container_
void ConfigurationParser::BackupResourceTable()
{
std::swap(config_resources_container_, config_resources_container_backup_);
config_resources_container_.reset(new ConfigResourcesContainer(this));
config_resources_container_backup_ = config_resources_container_;
config_resources_container_ = make_shared<ConfigResourcesContainer>(this);
}

bool ConfigurationParser::RemoveResource(int rcode, const char* name)
Expand Down

0 comments on commit 9c5a833

Please sign in to comment.