From 1f7afaabdbe35e2737c1709dc239fba563e0bf31 Mon Sep 17 00:00:00 2001 From: Tobias Leich Date: Sat, 3 May 2014 13:25:12 +0200 Subject: 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. --- tools/lib/NQP/Configure.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools/lib') 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; -- cgit v1.1