r20097 - gnucash/trunk/src/gnome - Remove unused variable.

Geert Janssens gjanssens at code.gnucash.org
Fri Jan 14 16:47:04 EST 2011


Author: gjanssens
Date: 2011-01-14 16:47:04 -0500 (Fri, 14 Jan 2011)
New Revision: 20097
Trac: http://svn.gnucash.org/trac/changeset/20097

Modified:
   gnucash/trunk/src/gnome/top-level.c
Log:
Remove unused variable.

Modified: gnucash/trunk/src/gnome/top-level.c
===================================================================
--- gnucash/trunk/src/gnome/top-level.c	2011-01-14 21:46:56 UTC (rev 20096)
+++ gnucash/trunk/src/gnome/top-level.c	2011-01-14 21:47:04 UTC (rev 20097)
@@ -244,7 +244,7 @@
     QofBook *book;
     const GncGUID *guid;
     const gchar *url, *guid_string;
-    gchar *file_guid, *filename = NULL;
+    gchar *file_guid;
     GError *error = NULL;
 
     url = qof_session_get_url(session);
@@ -260,9 +260,7 @@
     guid = qof_entity_get_guid(QOF_INSTANCE(book));
     guid_string = guid_to_string(guid);
 
-    keyfile = gnc_find_state_file(url, guid_string, &filename);
-    if (filename)
-        g_free(filename);
+    keyfile = gnc_find_state_file(url, guid_string, NULL);
 
     if (!keyfile)
     {



More information about the gnucash-changes mailing list