Prevent a crash when reading a new state file.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15468 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton
2007-01-30 04:35:34 +00:00
parent bf67b8f33c
commit a23e280d8d

View File

@@ -211,7 +211,7 @@ gnc_find_state_file (const gchar *url,
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;