tool_ssls: fix "ignored return value" warning

Pointed out by CodeSonar. While harmless, we might as well address it.

Closes #15949
This commit is contained in:
Daniel Stenberg 2025-01-09 08:25:36 +01:00
parent d0607b27b0
commit 779908df43
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -48,7 +48,7 @@ static CURLcode tool_ssls_easy(struct GlobalConfig *global,
return CURLE_OUT_OF_MEMORY;
result = curl_easy_setopt(*peasy, CURLOPT_SHARE, share);
if(global->tracetype != TRACE_NONE) {
if(!result && (global->tracetype != TRACE_NONE)) {
my_setopt(*peasy, CURLOPT_DEBUGFUNCTION, tool_debug_cb);
my_setopt(*peasy, CURLOPT_DEBUGDATA, config);
my_setopt(*peasy, CURLOPT_VERBOSE, 1L);