Commit 7ca0aedc authored by Max Kellermann's avatar Max Kellermann

Main: fix crash if no database was configured

Add nullptr check, and return early from glue_db_init_and_load().
parent a2c4037a
......@@ -181,6 +181,9 @@ glue_db_init_and_load(void)
param = allocated;
}
if (param == nullptr)
return true;
Error error;
if (!DatabaseGlobalInit(*param, error))
FatalError(error);
......
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