r23621 - gnucash/trunk/src/gnome - Fix compile warning introduced in r23602
Geert Janssens
gjanssens at code.gnucash.org
Thu Dec 26 08:47:49 EST 2013
Author: gjanssens
Date: 2013-12-26 08:47:49 -0500 (Thu, 26 Dec 2013)
New Revision: 23621
Trac: http://svn.gnucash.org/trac/changeset/23621
Modified:
gnucash/trunk/src/gnome/top-level.c
Log:
Fix compile warning introduced in r23602
Quote from gnucash-devel:
"I think this introduced a "might be used uninitialized" warning in
src/gnome/top-level.c with my particular version of gcc.
Initializing *file_guid with NULL in gnc_restore_all_state() fixes
the warning, see below."
Author: Herbert Thoma <herbert.thoma at iis.fraunhofer.de>
Modified: gnucash/trunk/src/gnome/top-level.c
===================================================================
--- gnucash/trunk/src/gnome/top-level.c 2013-12-26 13:47:39 UTC (rev 23620)
+++ gnucash/trunk/src/gnome/top-level.c 2013-12-26 13:47:49 UTC (rev 23621)
@@ -241,7 +241,7 @@
gnc_restore_all_state (gpointer session, gpointer unused)
{
GKeyFile *keyfile = NULL;
- gchar *file_guid;
+ gchar *file_guid = NULL;
GError *error = NULL;
keyfile = gnc_state_load (session);
More information about the gnucash-changes
mailing list