summaryrefslogtreecommitdiff
path: root/src/account.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2010-01-21 04:59:45 -0500
committerJohn Wiegley <johnw@newartisans.com>2010-01-21 04:59:45 -0500
commit0be486c58b1cb40f898e3504b6b80b4a0462145b (patch)
tree887d9ecf31ba75ded2ae1958c4b51a92b11ed76c /src/account.cc
parentd406aeb85d837bacb4e6e764794ca91a016a8361 (diff)
downloadfork-ledger-0be486c58b1cb40f898e3504b6b80b4a0462145b.tar.gz
fork-ledger-0be486c58b1cb40f898e3504b6b80b4a0462145b.tar.bz2
fork-ledger-0be486c58b1cb40f898e3504b6b80b4a0462145b.zip
Fixed assertion failure in -M -A bal report
Diffstat (limited to 'src/account.cc')
-rw-r--r--src/account.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/account.cc b/src/account.cc
index e6c7af56..f8729409 100644
--- a/src/account.cc
+++ b/src/account.cc
@@ -512,7 +512,7 @@ void account_t::xdata_t::details_t::update(post_t& post,
if (post.has_flags(POST_VIRTUAL))
posts_virtuals_count++;
- if (gather_all)
+ if (gather_all && post.pos)
filenames.insert(post.pos->pathname);
date_t date = post.date();