From 964e8924a44f1e704daf2734a6c4abd0577b94bd Mon Sep 17 00:00:00 2001 From: Dirk Date: Thu, 27 Nov 2025 19:45:39 +0100 Subject: [PATCH] define file var before using it --- t/32_isHTML_valid.t | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/t/32_isHTML_valid.t b/t/32_isHTML_valid.t index b1f8751..f173697 100755 --- a/t/32_isHTML_valid.t +++ b/t/32_isHTML_valid.t @@ -11,17 +11,16 @@ use Text::Diff; my $tests = 0; my $prg="./testssl.sh"; my $html=""; +my $htmlfile="tmp.html"; my $check2run="--ip=one -4 --openssl /usr/bin/openssl --sneaky --ids-friendly --color 0 --htmlfile $htmlfile"; my $uri="github.com"; my $out=""; my $debughtml=""; my $edited_html=""; -my $htmlfile="tmp.html"; # Pick /usr/bin/openssl as we want to avoid the debug messages like "Your ./bin/openssl.Linux.x86_64 doesn't support X25519" my $diff=""; my $ip=""; - die "Unable to open $prg" unless -f $prg; printf "\n%s\n", "Doing HTML output checks";