From: Danny Al-Gaaf Date: Wed, 17 Jun 2015 17:37:24 +0000 (+0200) Subject: rgw_rados.h: init non-static member of 'struct Params' in ctor X-Git-Tag: v9.1.0~446^2~6 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0a5792c2202efee8e7bbeec4b05268cff5d83c80;p=ceph.git rgw_rados.h: init non-static member of 'struct Params' in ctor Fix for: CID 1274321 (#1 of 1): Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member perr is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/rgw/rgw_rados.h b/src/rgw/rgw_rados.h index 25caf2ca123..43461d37237 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1535,7 +1535,7 @@ public: map *attrs; struct rgw_err *perr; - Params() : lastmod(NULL), read_size(NULL), obj_size(NULL), attrs(NULL) {} + Params() : lastmod(NULL), read_size(NULL), obj_size(NULL), attrs(NULL), perr(NULL) {} } params; Read(RGWRados::Object *_source) : source(_source) {}