]> granicus.if.org Git - curl/commitdiff
smtp_authenticate: avoid compiler warnings
authorPatrick Monnerat <pm@datasphere.ch>
Mon, 31 May 2010 15:25:55 +0000 (17:25 +0200)
committerPatrick Monnerat <pm@datasphere.ch>
Mon, 31 May 2010 15:37:00 +0000 (17:37 +0200)
lib/smtp.c

index 8c7b67ae741ed92e31fd04580a9e256dfbab5215..d2ceb58c3cb2f1ba131e2c06d1177999b70c53cc 100644 (file)
@@ -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";