From 9c4ff4874e0df1c16d10674ec418cd23c263ec3f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 3 Dec 2010 16:53:11 +0100 Subject: fix compiler warning: assignment within conditional expression --- lib/smtp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/smtp.c b/lib/smtp.c index 1e2e75b29..a0082fc79 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -226,7 +226,7 @@ static int smtp_endofresp(struct pingpong *pp, int *resp) if(len < 4 || !ISDIGIT(line[0]) || !ISDIGIT(line[1]) || !ISDIGIT(line[2])) return FALSE; /* Nothing for us. */ - if((result = line[3] == ' ')) + if((result = (line[3] == ' ')) != 0) *resp = curlx_sltosi(strtol(line, NULL, 10)); line += 4; @@ -677,7 +677,8 @@ static CURLcode smtp_state_authcram_resp(struct connectdata *conn, if(++l) { chlg64[l] = '\0'; - if(!(chlglen = Curl_base64_decode(chlg64, &chlg))) + chlglen = Curl_base64_decode(chlg64, &chlg); + if(!chlglen) return CURLE_OUT_OF_MEMORY; } } -- cgit v1.2.3