From 1d86d813c3dc246b16fdf7242862e17594d9ef5e Mon Sep 17 00:00:00 2001 From: Steve Holme Date: Wed, 27 Feb 2013 21:00:35 +0000 Subject: imap: Updated the coding style of imap_state_servergreet_resp() Updated the coding style, in this function, to be consistant with other response functions rather then performing a hard return on failure. --- lib/imap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/imap.c b/lib/imap.c index ae2fd4102..27c6a0565 100644 --- a/lib/imap.c +++ b/lib/imap.c @@ -730,10 +730,10 @@ static CURLcode imap_state_servergreet_resp(struct connectdata *conn, if(imapcode != 'O') { failf(data, "Got unexpected imap-server response"); - return CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: fix this code */ + result = CURLE_FTP_WEIRD_SERVER_REPLY; /* TODO: fix this code */ } - - result = imap_state_capability(conn); + else + result = imap_state_capability(conn); return result; } -- cgit v1.2.3