Francois Gouget : winetest: Avoid a deprecated form of checking for empty arrays.

Alexandre Julliard julliard at winehq.org
Fri Feb 7 12:54:12 CST 2014


Module: tools
Branch: master
Commit: 7c25c114a99f49fa92c20ed690aafb986faf920b
URL:    http://source.winehq.org/git/tools.git/?a=commit;h=7c25c114a99f49fa92c20ed690aafb986faf920b

Author: Francois Gouget <fgouget at 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>";
         }




More information about the wine-cvs mailing list