diff options
author | Tobias Leich <email@froggs.de> | 2014-05-03 13:25:12 +0200 |
---|---|---|
committer | Tobias Leich <email@froggs.de> | 2014-05-03 13:25:12 +0200 |
commit | 1f7afaabdbe35e2737c1709dc239fba563e0bf31 (patch) | |
tree | 95e3b67ea9e9146a3900b32dab68ab004375eaa9 /tools/lib | |
parent | b01b40e8e27eb038b1d3d54624aafa9d09920161 (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.
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/NQP/Configure.pm | 2 |
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; |