]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
AdminSocket: initialize m_getdescs_hook in the constructor
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 12 Mar 2014 20:03:25 +0000 (21:03 +0100)
committerDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Wed, 12 Mar 2014 20:03:25 +0000 (21:03 +0100)
CID 717212 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 2. uninit_member: Non-static class member "m_getdescs_hook" is not
 initialized in this constructor nor in any functions that it calls.

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
src/common/admin_socket.cc

index 1190b6d7ff8bfdb97a7f631da9c249d01004fdc9..b16517f1a053ab9ae61f2d384e929d865a4d19bd 100644 (file)
@@ -111,7 +111,8 @@ AdminSocket::AdminSocket(CephContext *cct)
     m_shutdown_wr_fd(-1),
     m_lock("AdminSocket::m_lock"),
     m_version_hook(NULL),
-    m_help_hook(NULL)
+    m_help_hook(NULL),
+    m_getdescs_hook(NULL)
 {
 }