Browse Source

Fix broken Solaris build by initializing variable.

Shane Kerr 12 years ago
parent
commit
b5ee1d01b3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dns/rrttl.cc

+ 1 - 1
src/lib/dns/rrttl.cc

@@ -92,7 +92,7 @@ RRTTL::RRTTL(const std::string& ttlstr) {
             // There's a unit now.
             units_mode = true;
             // Find the unit and get the size.
-            uint32_t multiply;
+            uint32_t multiply = 1;  // initialize to silence compiler warnings
             bool found = false;
             for (size_t i = 0; i < sizeof(units) / sizeof(*units); ++i) {
                 if (toupper(*unit) == units[i].unit) {