From fdbb950495b1f3e000a816f921ed1d97ca4953cb Mon Sep 17 00:00:00 2001 From: Dave Watson Date: Tue, 12 Jan 2016 14:47:00 -0800 Subject: [PATCH] Don't discard curl options if timeout is not defined. Merge of https://github.com/gperftools/gperftools/commit/5078abdb331e63d7a216994f186eb736861f8df7 --- bin/jeprof.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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));