diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-08-14 19:59:51 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-08-14 19:59:51 +0100 |
| commit | 69829c8c664d301de3f123f9893210eea89d8026 (patch) | |
| tree | 08dc362e3e2b79ef96b4957370c2311c0993c097 /src/lib | |
| parent | c7b0c3db7dabab1a5988309c82057b4474ffdf6e (diff) | |
Fix previous to generate chains if we are starting with no config.xml.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/config.cc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc index f341799c4..18fda63e3 100644 --- a/src/lib/config.cc +++ b/src/lib/config.cc @@ -166,13 +166,8 @@ void Config::read () try { - boost::filesystem::path const config_path = config_file (); - if (!boost::filesystem::exists (config_path)) { - return; - } - cxml::Document f ("Config"); - f.read_file (config_path); + f.read_file (config_file ()); optional<int> version = f.optional_number_child<int> ("Version"); |
