summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-07 05:53:40 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-07 05:53:40 -0400
commit9380d73646bcd79c4f24581b2212f684cea70138 (patch)
tree5eac7094c0bab29fa538c3976d68866d0b973fb1 /src
parentdf6b02b3ef908558f9640d45914267f14a84de87 (diff)
downloadfork-ledger-9380d73646bcd79c4f24581b2212f684cea70138.tar.gz
fork-ledger-9380d73646bcd79c4f24581b2212f684cea70138.tar.bz2
fork-ledger-9380d73646bcd79c4f24581b2212f684cea70138.zip
The "note" expressions returns an empty string if there is no note.
Diffstat (limited to 'src')
-rw-r--r--src/item.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc
index 4af37e89..700386af 100644
--- a/src/item.cc
+++ b/src/item.cc
@@ -143,7 +143,7 @@ namespace {
}
value_t get_note(item_t& item) {
- return item.note ? string_value(*item.note) : value_t(false);
+ return string_value(item.note ? *item.note : empty_string);
}
value_t has_tag(call_scope_t& args) {