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

CID 717207 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR)
 uninit_member: Non-static class member dirp 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/MetaRequest.h

index 8880933d73d1df95125136b13b51a773149e6a88..76c430fc0212e04488c277a8575944defe17fc2b 100644 (file)
@@ -82,8 +82,8 @@ public:
     regetattr_mask(0),
     mds(-1), resend_mds(-1), send_to_auth(false), sent_on_mseq(0),
     num_fwd(0), retry_attempt(0),
-    reply(0), 
-    kick(false), success(false),
+    reply(0),
+    kick(false), success(false), dirp(NULL),
     got_unsafe(false), item(this), unsafe_item(this),
     unsafe_dir_item(this), unsafe_target_item(this),
     caller_cond(0), dispatch_cond(0) {