Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(853)

Unified Diff: net/quic/core/quic_packet_generator_test.cc

Issue 2810643004: Initialize buffer in test before adding it to a packet (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_packet_generator_test.cc
diff --git a/net/quic/core/quic_packet_generator_test.cc b/net/quic/core/quic_packet_generator_test.cc
index 990888359cf57e9d911b52bc40b908112f3ab15a..b7b4c7e78b4e167441026697bb2339ffd38ce6e3 100644
--- a/net/quic/core/quic_packet_generator_test.cc
+++ b/net/quic/core/quic_packet_generator_test.cc
@@ -852,7 +852,7 @@ TEST_F(QuicPacketGeneratorTest, ConnectionCloseFrameLargerThanPacketSize) {
delegate_.SetCanWriteAnything();
QuicConnectionCloseFrame* frame = new QuicConnectionCloseFrame();
frame->error_code = QUIC_PACKET_WRITE_ERROR;
- char buf[2000];
+ char buf[2000] = {};
QuicStringPiece error_details(buf, 2000);
frame->error_details = error_details.as_string();
EXPECT_CALL(delegate_,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698