aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-05-14 00:19:58 +0000
committerAvatar Piotr Jaroszyński <peper@gentoo.org> 2007-05-14 00:19:58 +0000
commit88063a9fd59e09c35ec23fe0994a081ec3508d74 (patch)
tree3eac0fe2bab15b20478fac1f93b97e9c1cff60b6
parentfae6a418974cbdf6462aaee9807671f6214d7c67 (diff)
downloadpaludis-88063a9fd59e09c35ec23fe0994a081ec3508d74.tar.gz
paludis-88063a9fd59e09c35ec23fe0994a081ec3508d74.tar.xz
Fix Hook::validate_value to return true for empty values.
-rw-r--r--paludis/hook.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/paludis/hook.cc b/paludis/hook.cc
index dbfd699..13bdff7 100644
--- a/paludis/hook.cc
+++ b/paludis/hook.cc
@@ -83,7 +83,7 @@ Hook::grab_output(const AllowedOutputValues & av)
bool
Hook::validate_value(const std::string & v) const
{
- if (_imp->allowed_values.empty())
+ if (_imp->allowed_values.empty() || v.empty())
return true;
else
return (_imp->allowed_values.find(v) != _imp->allowed_values.end());