aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Leich <email@froggs.de>2014-05-03 13:25:12 +0200
committerTobias Leich <email@froggs.de>2014-05-03 13:25:12 +0200
commit1f7afaabdbe35e2737c1709dc239fba563e0bf31 (patch)
tree95e3b67ea9e9146a3900b32dab68ab004375eaa9
parentb01b40e8e27eb038b1d3d54624aafa9d09920161 (diff)
tools: only set $impl{config} when it is trueish
Otherwise we pass a ref of an empty hash around, wich will be treated truesh later.
-rw-r--r--tools/lib/NQP/Configure.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/NQP/Configure.pm b/tools/lib/NQP/Configure.pm
index cb95cc9..ee3f67c 100644
--- a/tools/lib/NQP/Configure.pm
+++ b/tools/lib/NQP/Configure.pm
@@ -313,7 +313,7 @@ sub gen_nqp {
my $nqp_have = $c{'nqp::version'} || '';
my $nqp_ok = $nqp_have && cmp_rev($nqp_have, $nqp_want) >= 0;
if ($nqp_ok) {
- $impls{$b}{config} = \%c;
+ $impls{$b}{config} = \%c if %c;
}
else {
$need{$b} = 1;