summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Porting/cmpVERSION.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/Porting/cmpVERSION.pl b/Porting/cmpVERSION.pl
index 1364e1d4ff..052051c3d2 100644
--- a/Porting/cmpVERSION.pl
+++ b/Porting/cmpVERSION.pl
@@ -45,8 +45,9 @@ find(
my $version1 = eval {MM->parse_version($_)};
my $version2 = eval {MM->parse_version($file2)};
push @wanted, $File::Find::name
- if $version1 eq $version2
+ if defined $version1 &&
+ defined $version2 &&
+ $version1 eq $version2
} }, curdir);
print map { $_, "\n" } sort @wanted;
-