summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-10-28 07:22:12 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:20 -0400
commit7f0a1ac5a3237dd26daffc058fb827cedff61174 (patch)
tree9f91e3ea6e6a9ab817068f3aa40d6110479aabc7
parent4957bd40645a084a7b5d0547d1cc2103c8c2cbe7 (diff)
downloadfork-ledger-7f0a1ac5a3237dd26daffc058fb827cedff61174.tar.gz
fork-ledger-7f0a1ac5a3237dd26daffc058fb827cedff61174.tar.bz2
fork-ledger-7f0a1ac5a3237dd26daffc058fb827cedff61174.zip
*** no comment ***
-rw-r--r--format.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/format.cc b/format.cc
index 3abce944..a2c84ef2 100644
--- a/format.cc
+++ b/format.cc
@@ -453,7 +453,7 @@ void format_t::format(std::ostream& out_str, const details_t& details) const
std::strftime(abuf, 255, elem->chars.c_str(),
std::localtime(&actual_date));
- if (effective_date && effective_date != actual_date) {
+ if (effective_date != 0 && effective_date != actual_date) {
char buf[512];
char ebuf[256];
std::strftime(ebuf, 255, elem->chars.c_str(),