From a0a91a61c44cc08353568c25f0e0887248bfb947 Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sun, 1 Nov 2009 21:16:47 -0500 Subject: If an item doesn't have a given tag, return "" --- src/item.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/item.cc') 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 env(scope, "s"); if (optional value = env->get_tag(env.get(0))) return string_value(*value); - return false; + return string_value(empty_string); } value_t get_pathname(item_t& item) { -- cgit v1.2.3