From: Patrick Monnerat Date: Mon, 31 May 2010 15:25:55 +0000 (+0200) Subject: smtp_authenticate: avoid compiler warnings X-Git-Tag: curl-7_21_0~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3fd01be6484c70b57c3cd54fe0e04b3d80fb7624;p=thirdparty%2Fcurl.git smtp_authenticate: avoid compiler warnings --- diff --git a/lib/smtp.c b/lib/smtp.c index 8c7b67ae74..d2ceb58c3c 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -385,6 +385,10 @@ static CURLcode smtp_authenticate(struct connectdata *conn) /* Check supported authentication mechanisms by decreasing order of preference. */ + mech = (const char *) NULL; /* Avoid compiler warnings. */ + state1 = 0; + state2 = 0; + #ifndef CURL_DISABLE_CRYPTO_AUTH if(smtpc->authmechs & SMTP_AUTH_CRAM_MD5) { mech = "CRAM-MD5";