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:
Andreas Köhler
2009-01-11 20:23:12 +00:00
parent e6ebfd4e13
commit cda274944e

View File

@@ -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))