Commit 8939fad8 authored by Francis Dupont's avatar Francis Dupont
Browse files

[3919] Assign typecode_ to avoid cppcheck warning

parent 78af50a2
......@@ -32,10 +32,12 @@ namespace isc {
namespace dns {
RRType::RRType(const std::string& type_str) {
if (!RRParamRegistry::getRegistry().textToTypeCode(type_str, typecode_)) {
uint16_t typecode;
if (!RRParamRegistry::getRegistry().textToTypeCode(type_str, typecode)) {
isc_throw(InvalidRRType,
"Unrecognized RR type string: " + type_str);
}
typecode_ = typecode;
}
RRType::RRType(InputBuffer& buffer) {
......
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