Index: net/quic/quic_stream_sequencer_buffer_test.cc |
diff --git a/net/quic/quic_stream_sequencer_buffer_test.cc b/net/quic/quic_stream_sequencer_buffer_test.cc |
index c925d3e8855710cf6ed4ac452f3f0bd9d4c0bc60..dd845a36dd2bbd2139b8c22d7d9d3b2a84ac6a9f 100644 |
--- a/net/quic/quic_stream_sequencer_buffer_test.cc |
+++ b/net/quic/quic_stream_sequencer_buffer_test.cc |
@@ -507,7 +507,8 @@ TEST_F(QuicStreamSequencerBufferTest, ReadvAcrossLastBlock) { |
EXPECT_EQ(2u, helper_->frame_arrival_time_map()->size()); |
// Read all data out. |
- std::unique_ptr<char[]> dest1{new char[max_capacity_bytes_]{0}}; |
+ std::unique_ptr<char[]> dest1{new char[max_capacity_bytes_]}; |
+ dest1[0] = 0; |
const iovec iov1{dest1.get(), max_capacity_bytes_}; |
EXPECT_EQ(max_capacity_bytes_ - 512 + 256, buffer_->Readv(&iov1, 1)); |
EXPECT_EQ(max_capacity_bytes_ + 256, buffer_->BytesConsumed()); |