]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
svb-records: Initialize d_port 9544/head
authorPieter Lexis <pieter.lexis@powerdns.com>
Mon, 28 Sep 2020 08:00:18 +0000 (10:00 +0200)
committerPieter Lexis <pieter.lexis@powerdns.com>
Mon, 28 Sep 2020 08:00:18 +0000 (10:00 +0200)
Should fix 6 coverity warnings.

pdns/svc-records.hh

index 69f8cba43dd0803eaffec882b6f30d5a9b5ca987..d2d4b2b7798ce76f9bc1007f9cb39f933b9823e0 100644 (file)
@@ -92,7 +92,7 @@ class SvcParam {
     std::set<SvcParamKey> d_mandatory; // For mandatory
     std::vector<ComboAddress> d_ipHints; // For ipv{6,4}hints
     std::string d_echconfig; // For echconfig
-    uint16_t d_port; // For port
+    uint16_t d_port{0}; // For port
 
     static const std::map<std::string, SvcParamKey> SvcParams;
 };