Francois Gouget : winetest: Avoid a deprecated form of checking for empty arrays.
Module: tools Branch: master Commit: 7c25c114a99f49fa92c20ed690aafb986faf920b URL: http://source.winehq.org/git/tools.git/?a=commit;h=7c25c114a99f49fa92c20ed69... Author: Francois Gouget <fgouget(a)free.fr> Date: Thu Feb 6 19:23:08 2014 +0100 winetest: Avoid a deprecated form of checking for empty arrays. --- winetest/build-index | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/winetest/build-index b/winetest/build-index index c4b9ecc..8e12c01 100755 --- a/winetest/build-index +++ b/winetest/build-index @@ -234,7 +234,7 @@ foreach my $build (@builds) { next unless defined($versions{$ver->{name}}); my $counts = $build->{versions}->{$ver->{name}}; - if (!defined @{$counts}) + if (!$counts || !@{$counts}) { printf OUT "<td class=\"note\"> </td>"; }
participants (1)
-
Alexandre Julliard