]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
client: initialize tid in MetaRequest ctor
authorSage Weil <sage@inktank.com>
Wed, 17 Oct 2012 18:59:36 +0000 (11:59 -0700)
committerSage Weil <sage@inktank.com>
Wed, 17 Oct 2012 18:59:55 +0000 (11:59 -0700)
CID 717207 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR)
At (2): Non-static class member "tid" is not initialized in this constructor nor in any functions that it calls.

Signed-off-by: Sage Weil <sage@inktank.com>
src/client/MetaRequest.h

index 03fe8886cbaed07b5bbf0c4d71df297992710df4..4ce16df16d1b6392ddf6b3fcecb78eab5c60a313 100644 (file)
@@ -1,3 +1,6 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
 #ifndef CEPH_CLIENT_METAREQUEST_H
 #define CEPH_CLIENT_METAREQUEST_H
 
@@ -70,6 +73,7 @@ struct MetaRequest {
   Inode *target;
 
   MetaRequest(int op) : 
+    tid(0),
     inode_drop(0), inode_unless(0),
     old_inode_drop(0), old_inode_unless(0),
     dentry_drop(0), dentry_unless(0),