]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
client/Client.cc: fix UNINIT_CTOR
authorDanny Al-Gaaf <danny.al-gaaf@bisect.de>
Thu, 11 May 2017 14:34:48 +0000 (16:34 +0200)
committerKefu Chai <kchai@redhat.com>
Sat, 2 Sep 2017 04:27:15 +0000 (12:27 +0800)
Fix for:

CID 1406088 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member root_ancestor 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/client/Client.cc

index bc74fe8f0076254242a5e4cf6eee2870d71591d7..9bc716144490b042925d1d026a2e465f282b55f3 100644 (file)
@@ -258,6 +258,7 @@ Client::Client(Messenger *m, MonClient *mc, Objecter *objecter_)
   _reset_faked_inos();
   //
   root = 0;
+  root_ancestor = 0;
 
   num_flushing_caps = 0;