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 <danny.al-gaaf@bisect.de>
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(){