diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-02-05 22:51:07 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-05-14 11:45:25 +0000 |
commit | 1838bd0f4839006b42d41a02a787b7f578655223 (patch) | |
tree | 1e6252e2f95a4c151c88f6b50826d911106f8c39 /contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp | |
parent | 1fd87a682ad7442327078e1eeb63edc4258f9815 (diff) | |
parent | 1e9a9d6d056506b23ad26952df45eaac949385c7 (diff) |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp b/contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp index 65f457933b92..cba342c9b343 100644 --- a/contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp +++ b/contrib/llvm-project/llvm/lib/Debuginfod/HTTPClient.cpp @@ -156,7 +156,8 @@ HTTPClient::HTTPClient() { "Must call HTTPClient::initialize() at the beginning of main()."); if (Curl) return; - assert((Curl = curl_easy_init()) && "Curl could not be initialized."); + Curl = curl_easy_init(); + assert(Curl && "Curl could not be initialized"); // Set the callback hooks. curl_easy_setopt(Curl, CURLOPT_WRITEFUNCTION, curlWriteFunction); curl_easy_setopt(Curl, CURLOPT_HEADERFUNCTION, curlHeaderFunction); |