mirror of
https://github.com/Gnucash/gnucash.git
synced 2024-11-25 18:30:23 -06:00
Handle AB_Job_GetResultText() returning NULL (#506499)
Don't output/printf a NULL string. Windows doesn't like it. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17146 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
adcbc5d215
commit
8430b27f03
@ -262,7 +262,7 @@ gnc_hbci_debug_outboxjob (GNCInteractor *inter, AB_JOB *job, gboolean verbose)
|
||||
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 @@ gnc_hbci_debug_outboxjob (GNCInteractor *inter, AB_JOB *job, gboolean verbose)
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user