mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
smtp_authenticate: avoid compiler warnings
This commit is contained in:
parent
5ae6db321f
commit
3fd01be648
@ -385,6 +385,10 @@ static CURLcode smtp_authenticate(struct connectdata *conn)
|
|||||||
|
|
||||||
/* Check supported authentication mechanisms by decreasing order of
|
/* Check supported authentication mechanisms by decreasing order of
|
||||||
preference. */
|
preference. */
|
||||||
|
mech = (const char *) NULL; /* Avoid compiler warnings. */
|
||||||
|
state1 = 0;
|
||||||
|
state2 = 0;
|
||||||
|
|
||||||
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
#ifndef CURL_DISABLE_CRYPTO_AUTH
|
||||||
if(smtpc->authmechs & SMTP_AUTH_CRAM_MD5) {
|
if(smtpc->authmechs & SMTP_AUTH_CRAM_MD5) {
|
||||||
mech = "CRAM-MD5";
|
mech = "CRAM-MD5";
|
||||||
|
Loading…
Reference in New Issue
Block a user