From 85a26ad2b8e7f1b449c0618c1ed2bd7d1aa4f8c8 Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Wed, 17 Oct 2012 11:59:36 -0700 Subject: [PATCH] client: initialize tid in MetaRequest ctor 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 --- src/client/MetaRequest.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/client/MetaRequest.h b/src/client/MetaRequest.h index 03fe8886cbaed..4ce16df16d1b6 100644 --- a/src/client/MetaRequest.h +++ b/src/client/MetaRequest.h @@ -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), -- 2.39.5