comparison h2.t @ 724:4322541b80ed

Tests: avoid uninitialized warnings in h2.t with partial frame.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 30 Sep 2015 17:54:12 +0300
parents bc4d6e2bd031
children 3e034902ebe7
comparison
equal deleted inserted replaced
723:bc4d6e2bd031 724:4322541b80ed
2206 my $stream = unpack "x5 B32", $buf; 2206 my $stream = unpack "x5 B32", $buf;
2207 substr($stream, 0, 1) = 0; 2207 substr($stream, 0, 1) = 0;
2208 $stream = unpack("N", pack("B32", $stream)); 2208 $stream = unpack("N", pack("B32", $stream));
2209 2209
2210 $buf = raw_read($s, $buf, $length + 9); 2210 $buf = raw_read($s, $buf, $length + 9);
2211 last unless length $buf; 2211 last if length($buf) < $length + 9;
2212 2212
2213 $buf = substr($buf, 9); 2213 $buf = substr($buf, 9);
2214 2214
2215 my $frame = $cframe{$type}{value}($sess, $buf, $length, $flags); 2215 my $frame = $cframe{$type}{value}($sess, $buf, $length, $flags);
2216 $frame->{length} = $length; 2216 $frame->{length} = $length;