Browse Source

[2521] minor simplification: initialize mem var in the list when possible.

not a big deal in this case, but it's more concise.
JINMEI Tatuya 12 years ago
parent
commit
5045f86bbd
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/lib/dns/rdata/generic/rrsig_46.cc

+ 1 - 2
src/lib/dns/rdata/generic/rrsig_46.cc

@@ -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) {