From: Jos Collin Date: Fri, 23 Jun 2017 15:49:37 +0000 (+0530) Subject: rgw: initialize Non-static class member val in ESQueryNodeLeafVal_Int X-Git-Tag: v12.1.2~1^2~12^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=e2fa8be18f0f6b38d0a2a54d62e72e3fc827dfd4;p=ceph.git rgw: initialize Non-static class member val in ESQueryNodeLeafVal_Int Fixed the Coverity Scan Report: CID 1412615 (#1 of 1): Uninitialized scalar field (UNINIT_CTOR) 2. uninit_member: Non-static class member val is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Jos Collin --- diff --git a/src/rgw/rgw_es_query.cc b/src/rgw/rgw_es_query.cc index 9a36cbc0d0f1..5fb943f407d1 100644 --- a/src/rgw/rgw_es_query.cc +++ b/src/rgw/rgw_es_query.cc @@ -184,7 +184,7 @@ public: }; class ESQueryNodeLeafVal_Int : public ESQueryNodeLeafVal { - int64_t val; + int64_t val{0}; public: ESQueryNodeLeafVal_Int() {} bool init(const string& str_val, string *perr) override {