summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWY <wailo_2@hotmail.com>2022-12-19 03:37:26 +0800
committerJohn Wiegley <johnw@newartisans.com>2023-01-20 17:25:05 -0800
commitef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b (patch)
treee61f5417b5dc33b60c958e2417c38526e6ae1ab5 /src
parent0ade3a55fb84f5d899bcdac3f92dd9af6b370c66 (diff)
downloadfork-ledger-ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b.tar.gz
fork-ledger-ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b.tar.bz2
fork-ledger-ef5b8ca3ac0c5cc15d97ebf29e2620c41ab6df3b.zip
Initial fix for #2147
Diffstat (limited to 'src')
-rw-r--r--src/post.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/post.cc b/src/post.cc
index 7c5379c4..637ca80c 100644
--- a/src/post.cc
+++ b/src/post.cc
@@ -135,7 +135,7 @@ string post_t::payee() const
string post_payee = payee_from_tag();
- return post_payee != "" ? post_payee : xact->payee;
+ return post_payee != "" ? post_payee : xact ? xact->payee : "";
}
namespace {