../privoxy-runtests.pm: Prevent warning if $_ is undefined
authorFabian Keil <fk@fabiankeil.de>
Mon, 14 Apr 2025 12:11:30 +0000 (14:11 +0200)
committerFabian Keil <fk@fabiankeil.de>
Wed, 23 Apr 2025 08:44:48 +0000 (10:44 +0200)
tests/cts/privoxy-runtests.pm

index b04b027..44aa03c 100644 (file)
@@ -175,6 +175,7 @@ sub getpartattr {
 # about unknown tests
 sub logmsg {
     for (@_) {
+        next unless defined($_);
         next if /^Warning: test\d+ not present in/;
         print "$_";
     }