r17649 - gnucash/branches/2.2/src/import-export/aqbanking - [r17638] Fixed a bug in AqBanking import code (don't use GWEN's buffered io here).

Christian Stimming cstim at cvs.gnucash.org
Sat Oct 25 07:11:18 EDT 2008


Author: cstim
Date: 2008-10-25 07:11:17 -0400 (Sat, 25 Oct 2008)
New Revision: 17649
Trac: http://svn.gnucash.org/trac/changeset/17649

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

Fixes #557374. Patch by Martin Preuss.

Modified: gnucash/branches/2.2/src/import-export/aqbanking/gnc-file-aqb-import.c
===================================================================
--- gnucash/branches/2.2/src/import-export/aqbanking/gnc-file-aqb-import.c	2008-10-25 09:36:08 UTC (rev 17648)
+++ gnucash/branches/2.2/src/import-export/aqbanking/gnc-file-aqb-import.c	2008-10-25 11:11:17 UTC (rev 17649)
@@ -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;
 
@@ -156,20 +156,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