mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Initialize GError in qof_log_parse_log_config().
This avoids a crash when the log configuration is not valid. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17813 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -244,7 +244,7 @@ void
|
||||
qof_log_parse_log_config(const char *filename)
|
||||
{
|
||||
const gchar *levels_group = "levels", *output_group = "output";
|
||||
GError *err;
|
||||
GError *err = NULL;
|
||||
GKeyFile *conf = g_key_file_new();
|
||||
|
||||
if (!g_key_file_load_from_file(conf, filename, G_KEY_FILE_NONE, &err))
|
||||
|
Reference in New Issue
Block a user