diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp index cc08910..050aed5 100644 --- a/src/curl_wrapper.cpp +++ b/src/curl_wrapper.cpp @@ -168,9 +168,9 @@ string CURLWrapper::make_http_request(http_method method, string_view uri) } } - long http_status; // NOLINT(google-runtime-int) + long http_status{0}; // NOLINT(google-runtime-int) // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg) - curl_easy_getinfo(_connection, CURLINFO_RESPONSE_CODE, &http_status); + check(curl_easy_getinfo(_connection, CURLINFO_RESPONSE_CODE, &http_status)); // status code is in http_status, headers are in _buffer_headers, body is in // _buffer_body. // TODO: Communicate the above.