]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2521] minor simplification: initialize mem var in the list when possible.
authorJINMEI Tatuya <jinmei@isc.org>
Fri, 3 May 2013 23:54:00 +0000 (16:54 -0700)
committerJINMEI Tatuya <jinmei@isc.org>
Fri, 3 May 2013 23:54:00 +0000 (16:54 -0700)
not a big deal in this case, but it's more concise.

src/lib/dns/rdata/generic/rrsig_46.cc

index 1b718086206952892cf9dad22775564e5802748c..549b3cfba969ae9b25a314d275b29bae1ab5ee23 100644 (file)
@@ -190,9 +190,8 @@ RRSIG::RRSIG(const std::string& rrsig_str) :
 /// it is non absolute.
 RRSIG::RRSIG(MasterLexer& lexer, const Name* origin,
              MasterLoader::Options, MasterLoaderCallbacks&) :
-    impl_(NULL)
+    impl_(constructFromLexer(lexer, origin))
 {
-    impl_ = constructFromLexer(lexer, origin);
 }
 
 RRSIG::RRSIG(InputBuffer& buffer, size_t rdata_len) {