AUDIT: r17638 - gnucash/trunk/src/import-export/aqbanking - Fixed a bug in AqBanking import code (don't use GWEN's buffered io here).

Christian Stimming cstim at cvs.gnucash.org
Wed Oct 22 16:40:50 EDT 2008


Author: cstim
Date: 2008-10-22 16:40:50 -0400 (Wed, 22 Oct 2008)
New Revision: 17638
Trac: http://svn.gnucash.org/trac/changeset/17638

Modified:
   gnucash/trunk/src/import-export/aqbanking/gnc-file-aqb-import.c
Log:
Fixed a bug in AqBanking import code (don't use GWEN's buffered io here).

Patch by Martin Preuss.
BP

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-file-aqb-import.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-file-aqb-import.c	2008-10-21 19:24:22 UTC (rev 17637)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-file-aqb-import.c	2008-10-22 20:40:50 UTC (rev 17638)
@@ -68,7 +68,7 @@
     GWEN_DB_NODE *db_profiles = NULL;
     GWEN_DB_NODE *db_profile;
     AB_IMEXPORTER_CONTEXT *context = NULL;
-    GWEN_IO_LAYER *io, *buffio;
+    GWEN_IO_LAYER *io;
     GncABImExContextImport *ieci = NULL;
     AB_JOB_LIST2 *job_list = NULL;
 
@@ -160,20 +160,19 @@
     /* Wrap file in buffered gwen io */
     io = GWEN_Io_LayerFile_new(dtaus_fd, -1);
     dtaus_fd = -1;
-    buffio = GWEN_Io_LayerBuffered_new(io);
-    if (GWEN_Io_Manager_RegisterLayer(buffio)) {
-        g_warning("gnc_file_aqbanking_import: Failed to wrap file");
-        goto cleanup;
+    if (GWEN_Io_Manager_RegisterLayer(io)) {
+	g_warning("gnc_file_aqbanking_import: Failed to wrap file");
+	goto cleanup;
     }
 
     /* Run the import */
-    if (AB_ImExporter_Import(importer, context, buffio, db_profile, 0)) {
+    if (AB_ImExporter_Import(importer, context, io, db_profile, 0)) {
         g_warning("gnc_file_aqbanking_import: Error on import");
         goto cleanup;
     }
 
     /* Close the file */
-    GWEN_Io_Layer_free(buffio);
+    GWEN_Io_Layer_free(io);
 
     /* Import the results */
     ieci = gnc_ab_import_context(context, AWAIT_TRANSACTIONS,



More information about the gnucash-changes mailing list