From 793ac8035c14c47d0cf8c138304e65478804ca74 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 4 Oct 2014 15:37:42 +0200 Subject: choose_mech: fix return code Coverity CID 1241950. The pointer is never NULL but it might point to NULL. --- lib/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/security.c b/lib/security.c index cc3cc35d2..ca17c5641 100644 --- a/lib/security.c +++ b/lib/security.c @@ -564,7 +564,7 @@ static CURLcode choose_mech(struct connectdata *conn) break; } - return mech != NULL ? CURLE_OK : CURLE_FAILED_INIT; + return *mech != NULL ? CURLE_OK : CURLE_FAILED_INIT; } CURLcode -- cgit v1.2.3