gnucash master: Fix bad getter for account-trans-retrieval

John Ralls jralls at code.gnucash.org
Sun Sep 7 19:14:18 EDT 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/e210f8cd (commit)
	from  https://github.com/Gnucash/gnucash/commit/67155158 (commit)



commit e210f8cdfb8ea44101becf3363ee52482d12a4fd
Author: John Ralls <jralls at ceridwen.us>
Date:   Sun Sep 7 16:12:50 2014 -0700

    Fix bad getter for account-trans-retrieval
    
    For timespecs we need a Timespec** to pass to qof_instance_get.

diff --git a/src/import-export/aqb/gnc-ab-kvp.c b/src/import-export/aqb/gnc-ab-kvp.c
index 940bad8..64b6a69 100644
--- a/src/import-export/aqb/gnc-ab-kvp.c
+++ b/src/import-export/aqb/gnc-ab-kvp.c
@@ -98,11 +98,11 @@ gnc_ab_set_account_uid(Account *a, guint32 uid)
 Timespec
 gnc_ab_get_account_trans_retrieval(const Account *a)
 {
-    Timespec t = {0LL, 0LL};
+    Timespec *t = NULL;
     qof_instance_get (QOF_INSTANCE (a),
 		      "ab-trans-retrieval", &t,
 		      NULL);
-    return t;
+    return *t;
 }
 
 void



Summary of changes:
 src/import-export/aqb/gnc-ab-kvp.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)



More information about the gnucash-changes mailing list