From: Michal 'vorner' Vaner Date: Wed, 12 Jun 2013 09:21:56 +0000 (+0200) Subject: [2726] Initialize variables X-Git-Tag: bind10-1.2.0beta1-release~400^2~28 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=797308ff2aedadc0281c8ca9c84daaa3c6d6d42c;p=thirdparty%2Fkea.git [2726] Initialize variables --- diff --git a/src/lib/util/unittests/mock_socketsession.h b/src/lib/util/unittests/mock_socketsession.h index 01ca34f3e6..fb155a22dd 100644 --- a/src/lib/util/unittests/mock_socketsession.h +++ b/src/lib/util/unittests/mock_socketsession.h @@ -42,7 +42,12 @@ class MockSocketSessionForwarder : public: MockSocketSessionForwarder() : is_connected_(false), connect_ok_(true), push_ok_(true), - close_ok_(true) + close_ok_(true), + // These are not used until set, but we set them anyway here, + // partly to silence cppcheck, and partly to be cleaner. Put some + // invalid values in. + pushed_sock_(-1), pushed_family_(-1), pushed_type_(-1), + pushed_protocol_(-1) {} virtual void connectToReceiver() {