Browse Source

[2765] Initialize variable used in unit test to prevent compilation failure

Marcin Siodelski 11 years ago
parent
commit
00d6ca046b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib/dhcp/tests/pkt_filter_unittest.cc

+ 1 - 1
src/lib/dhcp/tests/pkt_filter_unittest.cc

@@ -58,7 +58,7 @@ TEST_F(PktFilterBaseClassTest, openFallbackSocket) {
 
     // Now that we have the socket open, let's try to open another one. This
     // should cause a binding error.
-    int another_sock;
+    int another_sock = -1;
     EXPECT_THROW(another_sock =
                  pkt_filter.openFallbackSocket(IOAddress("127.0.0.1"), PORT),
                  isc::dhcp::SocketConfigError)