r20283 - gnucash/trunk/src/import-export/aqbanking - Fix potential parsing of NULL strings by correctly use an empty non-NULL string instead.
Christian Stimming
cstim at code.gnucash.org
Sat Feb 12 11:03:31 EST 2011
Author: cstim
Date: 2011-02-12 11:03:31 -0500 (Sat, 12 Feb 2011)
New Revision: 20283
Trac: http://svn.gnucash.org/trac/changeset/20283
Modified:
gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
Log:
Fix potential parsing of NULL strings by correctly use an empty non-NULL string instead.
Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c 2011-02-12 15:53:51 UTC (rev 20282)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c 2011-02-12 16:03:31 UTC (rev 20283)
@@ -411,8 +411,8 @@
const gchar *ab_remote_bankcode =
AB_Transaction_GetRemoteBankCode(ab_trans);
- gchar *ab_other_accountid = g_strdup(ab_remote_accountnumber);
- gchar *ab_other_bankcode = g_strdup(ab_remote_bankcode);
+ gchar *ab_other_accountid = g_strdup(ab_remote_accountnumber ? ab_remote_accountnumber : "");
+ gchar *ab_other_bankcode = g_strdup(ab_remote_bankcode ? ab_remote_bankcode : "");
gboolean have_accountid;
gboolean have_bankcode;
More information about the gnucash-changes
mailing list