Fix previous to generate chains if we are starting with no config.xml.
authorCarl Hetherington <cth@carlh.net>
Mon, 14 Aug 2017 18:59:51 +0000 (19:59 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 14 Aug 2017 18:59:51 +0000 (19:59 +0100)
src/lib/config.cc

index f341799c4597cf815e7349c48362baf211f9ea65..18fda63e3750467d3d958a2533777724dd10b68d 100644 (file)
@@ -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");