From e2fa8be18f0f6b38d0a2a54d62e72e3fc827dfd4 Mon Sep 17 00:00:00 2001 From: Jos Collin Date: Fri, 23 Jun 2017 21:19:37 +0530 Subject: [PATCH] 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 --- src/rgw/rgw_es_query.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.47.3