Browse Source

[3919] Added some missing initializations

Francis Dupont 9 years ago
parent
commit
997f139595
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/lib/dns/rdata/generic/naptr_35.cc
  2. 2 2
      src/lib/dns/rdataclass.cc

+ 2 - 2
src/lib/dns/rdata/generic/naptr_35.cc

@@ -1,4 +1,4 @@
-// Copyright (C) 2011  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011, 2015  Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -34,7 +34,7 @@ using namespace isc::dns;
 
 class NAPTRImpl {
 public:
-    NAPTRImpl() : replacement(".") {}
+    NAPTRImpl() : order(0, preference(0), replacement(".") {}
 
     NAPTRImpl(InputBuffer& buffer, size_t rdata_len) : replacement(".") {
         if (rdata_len < 4 || buffer.getLength() - buffer.getPosition() < 4) {

+ 2 - 2
src/lib/dns/rdataclass.cc

@@ -5,7 +5,7 @@
 ///////////////
 ///////////////
 
-// Copyright (C) 2010-2014  Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2010-2015  Internet Systems Consortium, Inc. ("ISC")
 //
 // Permission to use, copy, modify, and/or distribute this software for any
 // purpose with or without fee is hereby granted, provided that the above
@@ -2565,7 +2565,7 @@ namespace generic {
 
 class NAPTRImpl {
 public:
-    NAPTRImpl() : replacement(".") {}
+    NAPTRImpl() : order(0, preference(0), replacement(".") {}
 
     NAPTRImpl(InputBuffer& buffer, size_t rdata_len) : replacement(".") {
         if (rdata_len < 4 || buffer.getLength() - buffer.getPosition() < 4) {