File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
api/include/opentelemetry/context Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ class Context
9494 {
9595 char *key_ = nullptr ;
9696
97- nostd::shared_ptr<DataList> next_;
97+ nostd::shared_ptr<DataList> next_{ nullptr } ;
9898
9999 size_t key_length_ = 0UL ;
100100
101101 ContextValue value_;
102102
103- DataList () : next_{ nullptr } {}
103+ DataList () = default ;
104104
105105 // Builds a data list off of a key and value iterable and returns the head
106106 template <class T >
@@ -136,8 +136,8 @@ class Context
136136
137137 DataList (const DataList &other)
138138 : key_(new char [other.key_length_]),
139- key_length_ (other.key_length_),
140139 next_ (other.next_),
140+ key_length_(other.key_length_),
141141 value_(other.value_)
142142 {
143143 memcpy (key_, other.key_ , other.key_length_ * sizeof (char ));
You can’t perform that action at this time.
0 commit comments