AUDIT: r17813 - gnucash/trunk/lib/libqof/qof - Initialize GError in qof_log_parse_log_config().
Andreas Köhler
andi5 at cvs.gnucash.org
Sun Jan 11 15:23:12 EST 2009
Author: andi5
Date: 2009-01-11 15:23:12 -0500 (Sun, 11 Jan 2009)
New Revision: 17813
Trac: http://svn.gnucash.org/trac/changeset/17813
Modified:
gnucash/trunk/lib/libqof/qof/qoflog.c
Log:
Initialize GError in qof_log_parse_log_config().
This avoids a crash when the log configuration is not valid.
BP
Modified: gnucash/trunk/lib/libqof/qof/qoflog.c
===================================================================
--- gnucash/trunk/lib/libqof/qof/qoflog.c 2009-01-11 19:25:41 UTC (rev 17812)
+++ gnucash/trunk/lib/libqof/qof/qoflog.c 2009-01-11 20:23:12 UTC (rev 17813)
@@ -244,7 +244,7 @@
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))
More information about the gnucash-changes
mailing list