mirror of
https://github.com/curl/curl.git
synced 2024-12-15 06:40:09 +08:00
runtests: fix "uninitialized value $port"
by using a more appropriate variable Reported-by: fundawang on github Fixes #10518 Closes #10520
This commit is contained in:
parent
3027611ca6
commit
f1d09231ad
@ -1740,7 +1740,7 @@ sub runhttpserver {
|
||||
}
|
||||
|
||||
# where is it?
|
||||
my $port;
|
||||
my $port = 0;
|
||||
if(!$port_or_path) {
|
||||
$port = $port_or_path = pidfromfile($portfile);
|
||||
}
|
||||
@ -1758,7 +1758,7 @@ sub runhttpserver {
|
||||
$pid2 = $pid3;
|
||||
|
||||
if($verbose) {
|
||||
logmsg "RUN: $srvrname server is on PID $httppid port $port\n";
|
||||
logmsg "RUN: $srvrname server is on PID $httppid port $port_or_path\n";
|
||||
}
|
||||
|
||||
return ($httppid, $pid2, $port);
|
||||
|
Loading…
Reference in New Issue
Block a user