diff --git a/bin/jeprof.in b/bin/jeprof.in index 444041ec..a2402f40 100644 --- a/bin/jeprof.in +++ b/bin/jeprof.in @@ -3339,7 +3339,7 @@ sub ResolveRedirectionForCurl { # Add a timeout flat to URL_FETCHER. Returns a new list. sub AddFetchTimeout { my $timeout = shift; - my @fetcher = shift; + my @fetcher = @_; if (defined($timeout)) { if (join(" ", @fetcher) =~ m/\bcurl -s/) { push(@fetcher, "--max-time", sprintf("%d", $timeout));