From: Danny Al-Gaaf Date: Wed, 17 Jun 2015 17:40:10 +0000 (+0200) Subject: rgw_rados.h: init non-static member of 'stat_params' in ctor X-Git-Tag: v9.1.0~446^2~5 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1fece689bea6e98d4e82399734f18f94c7a3ba7f;p=ceph.git rgw_rados.h: init non-static member of 'stat_params' in ctor Fix for: CID 1274323 (#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 43461d37237..097f08a6ea0 100644 --- a/src/rgw/rgw_rados.h +++ b/src/rgw/rgw_rados.h @@ -1431,7 +1431,7 @@ public: map *attrs; struct rgw_err *perr; - StatParams() : lastmod(NULL), obj_size(NULL), attrs(NULL) {} + StatParams() : lastmod(NULL), obj_size(NULL), attrs(NULL), perr(NULL) {} } stat_params; struct ReadParams {