r15468 - gnucash/trunk/src/app-utils - Prevent a crash when reading a new state file.

David Hampton hampton at cvs.gnucash.org
Mon Jan 29 23:35:35 EST 2007


Author: hampton
Date: 2007-01-29 23:35:34 -0500 (Mon, 29 Jan 2007)
New Revision: 15468
Trac: http://svn.gnucash.org/trac/changeset/15468

Modified:
   gnucash/trunk/src/app-utils/file-utils.c
Log:
Prevent a crash when reading a new state file.

Modified: gnucash/trunk/src/app-utils/file-utils.c
===================================================================
--- gnucash/trunk/src/app-utils/file-utils.c	2007-01-30 01:25:57 UTC (rev 15467)
+++ gnucash/trunk/src/app-utils/file-utils.c	2007-01-30 04:35:34 UTC (rev 15468)
@@ -211,7 +211,7 @@
 				      STATE_FILE_TOP, STATE_FILE_BOOK_GUID,
 				      &error);
     DEBUG("File GUID is %s", file_guid);
-    if (strcmp(guid, file_guid) == 0) {
+    if (safe_strcmp(guid, file_guid) == 0) {
       DEBUG("Matched !!!");
       g_free(file_guid);
       break;



More information about the gnucash-changes mailing list