diff options
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); |