From 46e852ce26f0f5eeea54a6cac4680dc6a3315f73 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 20 Nov 2017 16:14:15 +0100 Subject: ntlm: remove unnecessary NULL-check to please scan-build --- lib/vauth/ntlm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/vauth') 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 */ -- cgit v1.2.3