We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b395420 commit f019838Copy full SHA for f019838
1 file changed
src/quic/cid.cc
@@ -13,7 +13,7 @@ namespace node::quic {
13
// ============================================================================
14
// CID
15
16
-CID::CID() : ptr_(&cid_) {
+CID::CID() : cid_{}, ptr_(&cid_) {
17
cid_.datalen = 0;
18
}
19
@@ -24,7 +24,7 @@ CID::CID(const uint8_t* data, size_t len) : CID() {
24
ngtcp2_cid_init(&cid_, data, len);
25
26
27
-CID::CID(const ngtcp2_cid* cid) : ptr_(cid) {
+CID::CID(const ngtcp2_cid* cid) : cid_{}, ptr_(cid) {
28
CHECK_NOT_NULL(cid);
29
DCHECK_LE(cid->datalen, kMaxLength);
30
0 commit comments