url: remove superfluous check

This pointer is already verified to be non-NULL some 15 lines above.

Pointed out by CodeSonar
Closes #21650
This commit is contained in:
Daniel Stenberg 2026-05-17 00:02:08 +02:00
parent a0f08d6975
commit 44ede0cc5a
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -2200,10 +2200,9 @@ static CURLcode override_login(struct Curl_easy *data,
if(result)
goto out;
}
else if(data->state.creds) {
else
/* only search when something is still missing */
Curl_creds_link(&ncreds_in, data->state.creds);
}
break;
default:
/* ignore credentials from other sources */