summaryrefslogtreecommitdiff
path: root/src/pprof
diff options
context:
space:
mode:
Diffstat (limited to 'src/pprof')
-rwxr-xr-xsrc/pprof2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pprof b/src/pprof
index c0c64bc..6abf528 100755
--- a/src/pprof
+++ b/src/pprof
@@ -3410,7 +3410,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));