diff options
author | Patrick Monnerat <pm@datasphere.ch> | 2010-05-31 17:25:55 +0200 |
---|---|---|
committer | Patrick Monnerat <pm@datasphere.ch> | 2010-05-31 17:37:00 +0200 |
commit | 3fd01be6484c70b57c3cd54fe0e04b3d80fb7624 (patch) | |
tree | 4f39d9d625210ceb63ba30299f663360a7e4648e /lib | |
parent | 5ae6db321ff40fc5e00c0513f5393d57371c0120 (diff) |
smtp_authenticate: avoid compiler warnings
Diffstat (limited to 'lib')
-rw-r--r-- | lib/smtp.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index 8c7b67ae7..d2ceb58c3 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"; |