Main: fix crash if no database was configured
Add nullptr check, and return early from glue_db_init_and_load().
This commit is contained in:
parent
a2c4037a24
commit
7ca0aedcfc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user