aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2010-12-03 16:53:11 +0100
committerYang Tse <yangsita@gmail.com>2010-12-03 16:53:11 +0100
commit9c4ff4874e0df1c16d10674ec418cd23c263ec3f (patch)
tree1f60e0179f6cca4a2013bf2ff682db41cf54208f /lib
parent46a0062dffca452142d6d91bc3ca07c018d93ec2 (diff)
fix compiler warning: assignment within conditional expression
Diffstat (limited to 'lib')
-rw-r--r--lib/smtp.c5
1 files changed, 3 insertions, 2 deletions
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;
}
}