diff options
author | John Wiegley <johnw@newartisans.com> | 2009-11-01 21:16:47 -0500 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-11-01 21:16:47 -0500 |
commit | a0a91a61c44cc08353568c25f0e0887248bfb947 (patch) | |
tree | 1106fa8876d6b9c058fb961b882e8a278a5738f1 /src/item.cc | |
parent | 1482298e4182ecb06b2d45559a81e579b7919ba5 (diff) | |
download | fork-ledger-a0a91a61c44cc08353568c25f0e0887248bfb947.tar.gz fork-ledger-a0a91a61c44cc08353568c25f0e0887248bfb947.tar.bz2 fork-ledger-a0a91a61c44cc08353568c25f0e0887248bfb947.zip |
If an item doesn't have a given tag, return ""
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/item.cc b/src/item.cc index debda7a3..37e19a82 100644 --- a/src/item.cc +++ b/src/item.cc @@ -237,7 +237,7 @@ namespace { in_context_t<item_t> env(scope, "s"); if (optional<string> value = env->get_tag(env.get<string>(0))) return string_value(*value); - return false; + return string_value(empty_string); } value_t get_pathname(item_t& item) { |