r17833 - gnucash/branches/2.2/src/import-export - Bug #526775: Remove printf("%s", NULL) in generic importer as called from ofx.

Andreas Köhler andi5 at cvs.gnucash.org
Sun Jan 18 16:52:10 EST 2009


Author: andi5
Date: 2009-01-18 16:52:10 -0500 (Sun, 18 Jan 2009)
New Revision: 17833
Trac: http://svn.gnucash.org/trac/changeset/17833

Modified:
   gnucash/branches/2.2/src/import-export/import-commodity-matcher.c
Log:
Bug #526775: Remove printf("%s", NULL) in generic importer as called from ofx.


Modified: gnucash/branches/2.2/src/import-export/import-commodity-matcher.c
===================================================================
--- gnucash/branches/2.2/src/import-export/import-commodity-matcher.c	2009-01-18 21:50:03 UTC (rev 17832)
+++ gnucash/branches/2.2/src/import-export/import-commodity-matcher.c	2009-01-18 21:52:10 UTC (rev 17833)
@@ -62,8 +62,10 @@
   char * tmp_namespace = NULL;
   GList * commodity_list=NULL;
   GList * namespace_list=NULL;
-  DEBUG("Default fullname received: %s", default_fullname);
-  DEBUG("Default mnemonic received: %s", default_mnemonic);
+  DEBUG("Default fullname received: %s",
+        default_fullname ? default_fullname : "(null)");
+  DEBUG("Default mnemonic received: %s",
+        default_mnemonic ? default_mnemonic : "(null)");
   
   DEBUG("Looking for commodity with exchange_code: %s", cusip);
 



More information about the gnucash-changes mailing list