aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ConfigData.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ConfigData.cxx b/src/ConfigData.cxx
index f255e3488..611c5b91a 100644
--- a/src/ConfigData.cxx
+++ b/src/ConfigData.cxx
@@ -108,8 +108,12 @@ config_param::GetBlockPath(const char *name, const char *default_value,
if (bp != nullptr) {
line2 = bp->line;
s = bp->value.c_str();
- } else
+ } else {
+ if (default_value == nullptr)
+ return Path::Null();
+
s = default_value;
+ }
Path path = ParsePath(s, error);
if (gcc_unlikely(path.IsNull()))