Commit 0339c8d0 authored by Max Kellermann's avatar Max Kellermann

ConfigData: handle default_value==nullptr

Return Path::Null() instead of dying from assertion failure.
parent 0e0be024
......@@ -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()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment