git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6527 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2002-01-07 13:56:11 +00:00
parent 434a74cca8
commit 9c3a997a4e
2 changed files with 2 additions and 17 deletions

View File

@ -272,22 +272,7 @@ get_account_cb (PGBackend *be, PGresult *result, int j, gpointer data)
PINFO ("account GUID=%s", DB_GET_VAL("accountGUID",j));
if (NULL == book)
{
GList *node;
GUID book_guid;
FIND_BOOK (book);
book = NULL;
for (node=be->blist; node; node=node->next)
{
book = node->data;
if (guid_equal (&book->guid, &book_guid)) break;
book = NULL;
}
if (!book) return data;
}
FIND_BOOK (book);
/* Next, lets see if we've already got this account */
acct_guid = nullguid; /* just in case the read fails ... */

View File

@ -358,7 +358,7 @@ gnc_commodity * gnc_string_to_commodity (const char *str, GNCBook *book);
if (guid_equal (&book->guid, &book_guid)) break; \
book = NULL; \
} \
if (!book) return NULL; \
if (!book) return data; \
} \
}