Skip to content

Commit 4e0ea75

Browse files
committed
test_rgw_admin_meta.cc: init non-static members in ctor
Fix for: CID 1054872 (#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 <danny.al-gaaf@bisect.de>
1 parent 5d81c9b commit 4e0ea75

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/test/test_rgw_admin_meta.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class test_helper {
8282
string *resp_data;
8383
unsigned resp_code;
8484
public:
85-
test_helper() : resp_data(NULL){
85+
test_helper() : curl_inst(0), resp_data(NULL), resp_code(0) {
8686
curl_global_init(CURL_GLOBAL_ALL);
8787
}
8888
~test_helper(){

0 commit comments

Comments
 (0)