Commit 8ec8a19d authored by Mukund Sivaraman's avatar Mukund Sivaraman
Browse files

[2426] Initialize rdlen (apparently cppcheck doesn't detect the throw and complains)

parent 659fb323
......@@ -221,7 +221,8 @@ Generic::constructFromLexer(MasterLexer& lexer) {
"unknown RDATA encoding");
uint32_t rdlen;
// Initialize with an absurd value.
uint32_t rdlen = 65536;
try {
rdlen = lexer.getNextToken(MasterToken::NUMBER).getNumber();
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