Fix a NULL-%s-printf in bayes matching, #436455.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16060 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-05-07 18:39:51 +00:00
parent 0cc3c94654
commit 3d4136fbac

View File

@ -434,7 +434,9 @@ Account* gnc_imap_find_account_bayes(GncImportMatchMap *imap, GList *tokens)
g_hash_table_destroy(running_probabilities);
g_hash_table_destroy(final_probabilities);
PINFO("highest P('%s') = '%d'", account_i.account_name, account_i.probability);
PINFO("highest P('%s') = '%d'",
account_i.account_name ? account_i.account_name: "(null)",
account_i.probability);
/* has this probability met our threshold? */
if(account_i.probability >= threshold)