From: Daniel Stenberg Date: Fri, 20 Sep 2024 06:50:22 +0000 (+0200) Subject: tests/valgrind.pm: fix warnings with no valgrind report to show X-Git-Tag: curl-8_11_0~399 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcbe930ef64c73ad9dffcd026caf61cb98d33290;p=thirdparty%2Fcurl.git tests/valgrind.pm: fix warnings with no valgrind report to show "readline() on closed filehandle $val at valgrind.pm line 45." Closes #14977 --- diff --git a/tests/valgrind.pm b/tests/valgrind.pm index a0bce30c8b..95d08a05fe 100644 --- a/tests/valgrind.pm +++ b/tests/valgrind.pm @@ -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;