From: Danny Al-Gaaf Date: Wed, 17 Jun 2015 09:41:51 +0000 (+0200) Subject: test_rgw_admin_opstate.cc: init non-static members in ctor X-Git-Tag: v9.1.0~446^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=d46fca5e387c2796f6122dd6a6acefae4cc675f9;p=ceph.git test_rgw_admin_opstate.cc: init non-static members in ctor Fix for: CID 1054871 (#1 of 2): Uninitialized pointer field (UNINIT_CTOR) uninit_member: Non-static class member curl_inst is not initialized in this constructor nor in any functions that it calls. uninit_member: Non-static class member resp_code is not initialized in this constructor nor in any functions that it calls. Signed-off-by: Danny Al-Gaaf --- diff --git a/src/test/test_rgw_admin_opstate.cc b/src/test/test_rgw_admin_opstate.cc index 5687225d864..a9a65f51b07 100644 --- a/src/test/test_rgw_admin_opstate.cc +++ b/src/test/test_rgw_admin_opstate.cc @@ -85,7 +85,7 @@ class test_helper { string *resp_data; unsigned resp_code; public: - test_helper() : resp_data(NULL){ + test_helper() : curl_inst(NULL), resp_data(NULL), resp_code(0) { curl_global_init(CURL_GLOBAL_ALL); } ~test_helper(){