r16060 - gnucash/trunk/src/import-export - Fix a NULL-%s-printf in bayes matching, #436455.
Andreas Köhler
andi5 at cvs.gnucash.org
Mon May 7 14:39:52 EDT 2007
Author: andi5
Date: 2007-05-07 14:39:51 -0400 (Mon, 07 May 2007)
New Revision: 16060
Trac: http://svn.gnucash.org/trac/changeset/16060
Modified:
gnucash/trunk/src/import-export/import-match-map.c
Log:
Fix a NULL-%s-printf in bayes matching, #436455.
Modified: gnucash/trunk/src/import-export/import-match-map.c
===================================================================
--- gnucash/trunk/src/import-export/import-match-map.c 2007-05-07 13:24:27 UTC (rev 16059)
+++ gnucash/trunk/src/import-export/import-match-map.c 2007-05-07 18:39:51 UTC (rev 16060)
@@ -434,7 +434,9 @@
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)
More information about the gnucash-changes
mailing list