summaryrefslogtreecommitdiff
path: root/win32/FindExt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'win32/FindExt.pm')
-rw-r--r--win32/FindExt.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/FindExt.pm b/win32/FindExt.pm
index 25fa8ce844..f1957f177e 100644
--- a/win32/FindExt.pm
+++ b/win32/FindExt.pm
@@ -38,7 +38,7 @@ sub set_static_extensions {
# (with possible exclusions)
%static = ();
my @list = @_;
- if ($_[0] eq '*') {
+ if (@_ and $_[0] eq '*') {
my %excl = map {$_=>1} map {m/^!(.*)$/} @_[1 .. $#_];
@list = grep {!exists $excl{$_}} keys %ext;
}