mirror of
https://github.com/curl/curl.git
synced 2026-07-29 00:43:06 +03:00
choose_mech: fix return code
Coverity CID 1241950. The pointer is never NULL but it might point to NULL.
This commit is contained in:
parent
c2791caf53
commit
793ac8035c
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue