summaryrefslogtreecommitdiff
path: root/lib/ftp.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2016-03-19 17:15:53 +0000
committerSteve Holme <steve_holme@hotmail.com>2016-03-19 17:15:53 +0000
commitc142e73142e377f9bcd75fed0a558ce30323e98c (patch)
tree3c26f8a4139d9cd87491b3b4b1810faf3e6a2e4b /lib/ftp.c
parent4ff2fbd1d5d743556627816f4727c499c480d633 (diff)
downloadcurl-c142e73142e377f9bcd75fed0a558ce30323e98c.tar.gz
ftp/imap/pop3/smtp: Fixed compilation warning when /Wall enabled
warning C4706: assignment within conditional expression
Diffstat (limited to 'lib/ftp.c')
-rw-r--r--lib/ftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ftp.c b/lib/ftp.c
index 40c51ead5..9b728cc98 100644
--- a/lib/ftp.c
+++ b/lib/ftp.c
@@ -155,8 +155,9 @@ static CURLcode ftp_dophase_done(struct connectdata *conn,
bool connected);
/* easy-to-use macro: */
-#define PPSENDF(x,y,z) if((result = Curl_pp_sendf(x,y,z))) \
- return result
+#define PPSENDF(x,y,z) result = Curl_pp_sendf(x,y,z); \
+ if(result) \
+ return result
/*