diff options
author | Eric Wong <e@yhbt.net> | 2020-05-01 18:04:44 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-05-03 09:29:27 +0000 |
commit | 85431deb9a346bc83a7f5e8e0f102e19dfa603a9 (patch) | |
tree | 0fcb287f973a46c3edf68338b5884e1715187277 | |
parent | 2f4ff3b0e7e63dde0c164dfb9875b9af75c609ff (diff) | |
download | public-inbox-85431deb9a346bc83a7f5e8e0f102e19dfa603a9.tar.gz |
Current versions of Perl don't warn when vec() is given `undef' as its first arg, but Perl 5.10.1 does, at least. Fixes: c7b4cbdadf3116a0 ("t/httpd-corner: improve reliability and diagnostics")
-rw-r--r-- | t/httpd-corner.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/httpd-corner.t b/t/httpd-corner.t index 7a6bcc66..68148655 100644 --- a/t/httpd-corner.t +++ b/t/httpd-corner.t @@ -296,7 +296,7 @@ my $len = length $str; is($len, 26, 'got the alphabet'); my $check_self = sub { my ($conn) = @_; - vec(my $rbits, fileno($conn), 1) = 1; + vec(my $rbits = '', fileno($conn), 1) = 1; select($rbits, undef, undef, 30) or Carp::confess('timed out'); $conn->read(my $buf, 4096); my ($head, $body) = split(/\r\n\r\n/, $buf, 2); |