Commit 09191932 authored by JINMEI Tatuya's avatar JINMEI Tatuya

[trac613] made sure NameserverEntry::xxx_address_ are initialized in the constructor.

With this change we can silence cppcheck in one other point.
parent ab86095a
unreadVariable:src/lib/dns/rdata/template.cc:59
uninitVar:src/lib/nsas/nameserver_entry.h
functionConst:src/lib/cache/message_cache.h
functionConst:src/lib/cache/rrset_cache.h
debug
......@@ -105,7 +105,14 @@ public:
name_(name),
classCode_(class_code),
expiration_(0)
{}
{
has_address_[V4_ONLY] = false;
has_address_[V6_ONLY] = false;
has_address_[ANY_OK] = false;
expect_address_[V4_ONLY] = false;
expect_address_[V6_ONLY] = false;
expect_address_[ANY_OK] = false;
}
/*
* \brief Return Address
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment