mirror of
https://github.com/curl/curl.git
synced 2026-04-17 09:01:46 +03:00
tests/valgrind.pm: fix warnings with no valgrind report to show
"readline() on closed filehandle $val at valgrind.pm line 45." Closes #14977
This commit is contained in:
parent
df5ad100f5
commit
fcbe930ef6
1 changed files with 2 additions and 1 deletions
|
|
@ -41,7 +41,8 @@ use File::Basename;
|
|||
sub valgrindparse {
|
||||
my ($file) = @_;
|
||||
my @o;
|
||||
open(my $val, "<", "$file");
|
||||
open(my $val, "<", "$file") ||
|
||||
return;
|
||||
@o = <$val>;
|
||||
close($val);
|
||||
return @o;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue