From c142e73142e377f9bcd75fed0a558ce30323e98c Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Sat, 19 Mar 2016 17:15:53 +0000 Subject: ftp/imap/pop3/smtp: Fixed compilation warning when /Wall enabled warning C4706: assignment within conditional expression --- lib/imap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/imap.c') diff --git a/lib/imap.c b/lib/imap.c index a3d2cad22..ff25e54e0 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -910,8 +910,8 @@ static CURLcode imap_state_capability_resp(struct connectdata *conn, wordlen -= 5; /* Test the word for a matching authentication mechanism */ - if((mechbit = Curl_sasl_decode_mech(line, wordlen, &llen)) && - llen == wordlen) + mechbit = Curl_sasl_decode_mech(line, wordlen, &llen); + if(mechbit && llen == wordlen) imapc->sasl.authmechs |= mechbit; } -- cgit v1.2.3