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

Unified Diff: net/spdy/hpack/hpack_entry.cc

Issue 2663203002: Fix uninitialized fields in hpack code. (Closed)
Patch Set: Created 3 years, 11 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 | « net/spdy/hpack/hpack_decoder.cc ('k') | net/spdy/hpack/hpack_huffman_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/hpack/hpack_entry.cc
diff --git a/net/spdy/hpack/hpack_entry.cc b/net/spdy/hpack/hpack_entry.cc
index 9a4707915e128c92804e326fea201e08f84e54f7..1acf850e63adc1cb71f8de5f8b3895b1c23e33c2 100644
--- a/net/spdy/hpack/hpack_entry.cc
+++ b/net/spdy/hpack/hpack_entry.cc
@@ -22,15 +22,19 @@ HpackEntry::HpackEntry(StringPiece name,
name_ref_(name_),
value_ref_(value_),
insertion_index_(insertion_index),
- type_(is_static ? STATIC : DYNAMIC) {}
+ type_(is_static ? STATIC : DYNAMIC),
+ time_added_(0) {}
HpackEntry::HpackEntry(StringPiece name, StringPiece value)
- : name_ref_(name), value_ref_(value), insertion_index_(0), type_(LOOKUP) {}
+ : name_ref_(name), value_ref_(value), insertion_index_(0), type_(LOOKUP),
+ time_added_(0) {}
-HpackEntry::HpackEntry() : insertion_index_(0), type_(LOOKUP) {}
+HpackEntry::HpackEntry()
+ : insertion_index_(0), type_(LOOKUP), time_added_(0) {}
HpackEntry::HpackEntry(const HpackEntry& other)
- : insertion_index_(other.insertion_index_), type_(other.type_) {
+ : insertion_index_(other.insertion_index_), type_(other.type_),
+ time_added_(0) {
if (type_ == LOOKUP) {
name_ref_ = other.name_ref_;
value_ref_ = other.value_ref_;
« no previous file with comments | « net/spdy/hpack/hpack_decoder.cc ('k') | net/spdy/hpack/hpack_huffman_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698