Skip to content

Commit

Permalink
Bug 797825 - OFX import crashes on import of investment transaction
Browse files Browse the repository at this point in the history
The crash is caused by an uninitialized pointer in ofx_info.
This fixed it.
  • Loading branch information
jean committed Jun 29, 2020
1 parent 5cf5edc commit 4afe4f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gnucash/import-export/ofx/gnc-ofx-import.c
Expand Up @@ -1252,6 +1252,10 @@ void gnc_file_ofx_import (GtkWindow *parent)
info = g_new(ofx_info,1);
info->num_trans_processed = 0;
info->statement = NULL;
info->last_investment_account = NULL;
info->last_import_account = NULL;
info->last_income_account = NULL;
info->created_commodites = NULL;
info->parent = parent;
info->run_reconcile = FALSE;
info->file_list = selected_filenames;
Expand Down

0 comments on commit 4afe4f9

Please sign in to comment.