Commit 43847f22 authored by Max Kellermann's avatar Max Kellermann

test/DumpDatabase: fix nullptr dereference

parent 8f9ba96c
......@@ -99,7 +99,7 @@ main(int argc, char **argv)
/* do it */
const struct config_param *path = config_get_param(CONF_DB_FILE);
config_param param("database", path->line);
config_param param("database", path != nullptr ? path->line : -1);
if (path != nullptr)
param.AddBlockParam("path", path->value.c_str(), path->line);
......
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