From: Steve Holme Date: Wed, 27 Feb 2013 21:00:35 +0000 (+0000) Subject: imap: Updated the coding style of imap_state_servergreet_resp() X-Git-Tag: curl-7_30_0~242 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1d86d813c3dc246b16fdf7242862e17594d9ef5e;p=curl 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. --- 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; }