config/Path: add InitPathParser()

Eliminate yet another access to the global ConfigData instance.
This commit is contained in:
Max Kellermann
2018-08-19 22:29:39 +02:00
parent 1a9659ef45
commit 5f95c07305
3 changed files with 23 additions and 6 deletions

View File

@@ -55,6 +55,7 @@
#include "config/Global.hxx"
#include "config/Data.hxx"
#include "config/Param.hxx"
#include "config/Path.hxx"
#include "config/Defaults.hxx"
#include "config/Option.hxx"
#include "config/Domain.hxx"
@@ -491,6 +492,7 @@ MainOrThrow(int argc, char *argv[])
#endif
const auto &raw_config = GetGlobalConfig();
InitPathParser(raw_config);
const auto config = LoadConfig(raw_config);
#ifdef ENABLE_DAEMON