summaryrefslogtreecommitdiff
path: root/src/ofx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/ofx.cc')
-rw-r--r--src/ofx.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ofx.cc b/src/ofx.cc
index 8940f62a..0bc917e8 100644
--- a/src/ofx.cc
+++ b/src/ofx.cc
@@ -61,7 +61,8 @@ int ofx_proc_account_cb(struct OfxAccountData data, void *)
return -1;
DEBUG("ledger.ofx.parse", "account " << data.account_name);
- account_t * account = new account_t(master_account, data.account_name);
+ account_t * account = new account_t(master_account->owner, master_account,
+ data.account_name);
curr_journal->add_account(account);
ofx_accounts.insert(accounts_pair(data.account_id, account));