aboutsummaryrefslogtreecommitdiffstats
path: root/src/ConfigGlobal.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ConfigGlobal.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ConfigGlobal.cxx b/src/ConfigGlobal.cxx
index 11e53fc3c..bd1440a5e 100644
--- a/src/ConfigGlobal.cxx
+++ b/src/ConfigGlobal.cxx
@@ -105,6 +105,12 @@ config_get_path(ConfigOption option, Error &error)
if (param == nullptr)
return Path::Null();
+ return config_parse_path(param, error);
+}
+
+Path
+config_parse_path(const struct config_param *param, Error & error)
+{
Path path = ParsePath(param->value, error);
if (gcc_unlikely(path.IsNull()))
error.FormatPrefix("Invalid path at line %i: ",