From: Daniel Stenberg Date: Mon, 20 Nov 2017 15:14:15 +0000 (+0100) Subject: ntlm: remove unnecessary NULL-check to please scan-build X-Git-Tag: curl-7_57_0~27 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46e852ce26f0f5eeea54a6cac4680dc6a3315f73;p=curl ntlm: remove unnecessary NULL-check to please scan-build --- diff --git a/lib/vauth/ntlm.c b/lib/vauth/ntlm.c index 50d922208..1e0d4792e 100644 --- a/lib/vauth/ntlm.c +++ b/lib/vauth/ntlm.c @@ -543,8 +543,7 @@ CURLcode Curl_auth_create_ntlm_type3_message(struct Curl_easy *data, else user = userp; - if(user) - userlen = strlen(user); + userlen = strlen(user); /* Get the machine's un-qualified host name as NTLM doesn't like the fully qualified domain name */