AUDIT: r17146 - gnucash/trunk/src/import-export/hbci - Handle AB_Job_GetResultText() returning NULL (#506499)
Derek Atkins
warlord at cvs.gnucash.org
Thu May 1 17:00:13 EDT 2008
Author: warlord
Date: 2008-05-01 17:00:13 -0400 (Thu, 01 May 2008)
New Revision: 17146
Trac: http://svn.gnucash.org/trac/changeset/17146
Modified:
gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.c
Log:
Handle AB_Job_GetResultText() returning NULL (#506499)
Don't output/printf a NULL string. Windows doesn't like it.
BP
Modified: gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.c
===================================================================
--- gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.c 2008-05-01 09:11:41 UTC (rev 17145)
+++ gnucash/trunk/src/import-export/hbci/gnc-hbci-utils.c 2008-05-01 21:00:13 UTC (rev 17146)
@@ -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