r17166 - gnucash/branches/2.2/src/import-export/hbci - [r17146] Handle AB_Job_GetResultText() returning NULL (#506499)

Christian Stimming cstim at cvs.gnucash.org
Wed May 21 16:16:11 EDT 2008


Author: cstim
Date: 2008-05-21 16:16:10 -0400 (Wed, 21 May 2008)
New Revision: 17166
Trac: http://svn.gnucash.org/trac/changeset/17166

Modified:
   gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-utils.c
Log:
[r17146] Handle AB_Job_GetResultText() returning NULL (#506499)
Don't output/printf a NULL string.  Windows doesn't like it.

Committed by warlord.


Modified: gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-utils.c
===================================================================
--- gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-utils.c	2008-05-21 20:11:46 UTC (rev 17165)
+++ gnucash/branches/2.2/src/import-export/hbci/gnc-hbci-utils.c	2008-05-21 20:16:10 UTC (rev 17166)
@@ -262,7 +262,7 @@
   if (verbose) {
     g_warning("gnc_hbci_debug_outboxjob: Job status: %s", AB_Job_Status2Char(AB_Job_GetStatus(job)));
 
-    g_warning(", result: %s", AB_Job_GetResultText(job));
+    g_warning(", result: %s", AB_Job_GetResultText(job) ? AB_Job_GetResultText(job) : "(none)");
     g_warning("\n");
   }
 
@@ -280,7 +280,7 @@
     if (!verbose)
       g_warning("gnc_hbci_debug_outboxjob: Job %s had an error: %s\n",
 	     AB_Job_Type2Char(AB_Job_GetType(job)),
-	     AB_Job_GetResultText(job));
+	     AB_Job_GetResultText(job) ? AB_Job_GetResultText(job) : "(none)");
     cause = 9000;
   } else {
     cause = 0;



More information about the gnucash-changes mailing list