runtests: fix Perl warning

```
Use of uninitialized value $cmdhash{"option"} in pattern match (m//) at tests/runtests.pl line 1753.
```
Ref: https://github.com/curl/curl/actions/runs/19833947198/job/56831923295?pr=19794#step:13:3694

Follow-up to 02aa75a8c2 #19752
Closes #19797
This commit is contained in:
Viktor Szakats 2025-12-01 21:07:56 +01:00
parent 9517b41b50
commit 58673ac837
No known key found for this signature in database
GPG Key ID: B5ABD165E2AEF201

View File

@ -1750,7 +1750,7 @@ sub singletest_check {
if(! -f "$logdir/$MEMDUMP") {
my %cmdhash = getpartattr("client", "command");
my $cmdtype = $cmdhash{'type'} || "default";
if($cmdhash{'option'} !~ /no-memdebug/) {
if($cmdhash{'option'} && $cmdhash{'option'} !~ /no-memdebug/) {
logmsg "\n** ALERT! memory tracking with no output file?\n"
if($cmdtype ne "perl");
}