From: Danny Al-Gaaf Date: Wed, 17 Jun 2015 09:44:39 +0000 (+0200) Subject: test_cors.cc: init non-static members in ctor X-Git-Tag: v9.1.0~446^2~10 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5d81c9ba9ea0b45516b44fc2a7916e29fc6066b8;p=ceph.git test_cors.cc: init non-static members in ctor Fix for: CID 1019635 (#1 of 1): 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_cors.cc b/src/test/test_cors.cc index 4d385bc037e9..20cdeadd3cbb 100644 --- a/src/test/test_cors.cc +++ b/src/test/test_cors.cc @@ -66,7 +66,7 @@ class test_cors_helper { unsigned resp_code; key_type kt; public: - test_cors_helper() : resp_data(NULL), kt(KEY_TYPE_UNDEFINED){ + test_cors_helper() : curl_inst(NULL), resp_data(NULL), resp_code(0), kt(KEY_TYPE_UNDEFINED){ curl_global_init(CURL_GLOBAL_ALL); } ~test_cors_helper(){