summaryrefslogtreecommitdiff
path: root/src/temps.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-11-06 02:39:02 -0500
committerJohn Wiegley <johnw@newartisans.com>2009-11-06 02:39:35 -0500
commit205639669981f1ab9dc355d07c60c123c4da0ca0 (patch)
tree107234c2ca0947fac84be819611ff5c0c610dac6 /src/temps.cc
parenta05d39b7226a7a383dc30132a2fac2bbd30a54ec (diff)
downloadfork-ledger-205639669981f1ab9dc355d07c60c123c4da0ca0.tar.gz
fork-ledger-205639669981f1ab9dc355d07c60c123c4da0ca0.tar.bz2
fork-ledger-205639669981f1ab9dc355d07c60c123c4da0ca0.zip
Fixed NULL pointer bug if --account=EXPR is invalid
Diffstat (limited to 'src/temps.cc')
-rw-r--r--src/temps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/temps.cc b/src/temps.cc
index 012a573b..fd099e9a 100644
--- a/src/temps.cc
+++ b/src/temps.cc
@@ -45,7 +45,7 @@ temporaries_t::~temporaries_t()
if (! post.xact->has_flags(ITEM_TEMP))
post.xact->remove_post(&post);
- if (! post.account->has_flags(ACCOUNT_TEMP))
+ if (post.account && ! post.account->has_flags(ACCOUNT_TEMP))
post.account->remove_post(&post);
}
}