All pastes #610986 Raw Edit

Meins

public text v1 · immutable
#610986 ·published 2007-07-09 18:48 UTC
rendered paste body
Index: src/import-export/csv/gnc-csv-model.c
===================================================================
--- src/import-export/csv/gnc-csv-model.c       (Revision 16284)
+++ src/import-export/csv/gnc-csv-model.c       (Arbeitskopie)
@@ -510,7 +510,7 @@
   int i, j;
   GArray* column_types = parse_data->column_types;
   GList *error_lines = NULL, *begin_error_lines = NULL;
-  GList* last_transaction;
+  GList* last_transaction = NULL;

   /* Free parse_data->error_lines and parse_data->transactions if they
    * already exist. */
@@ -546,7 +546,7 @@
     gboolean errors = FALSE;
     GList* properties = NULL;
     GList* properties_begin;
-    Transaction* trans;
+    Transaction* trans = NULL;

     /* TODO There should eventually be a specification of what errors
      * actually occurred, not just that one happened. */