diff options
author | Steve Holme <steve_holme@hotmail.com> | 2013-03-09 22:25:40 +0000 |
---|---|---|
committer | Steve Holme <steve_holme@hotmail.com> | 2013-03-09 22:25:40 +0000 |
commit | 059647f398b7b83e291909ce9d56dd9ecf9011de (patch) | |
tree | 68a1a5460b265f92bfc73cc5f188e7497a81f890 /lib/smtp.c | |
parent | 136a3a0ee25f28fec1dde216467389f9e6e4f65c (diff) | |
download | curl-059647f398b7b83e291909ce9d56dd9ecf9011de.tar.gz |
email: Removed hard returns from init functions
Diffstat (limited to 'lib/smtp.c')
-rw-r--r-- | lib/smtp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/smtp.c b/lib/smtp.c index bed46a99a..594d09a14 100644 --- a/lib/smtp.c +++ b/lib/smtp.c @@ -1264,16 +1264,17 @@ static CURLcode smtp_block_statemach(struct connectdata *conn) required */ static CURLcode smtp_init(struct connectdata *conn) { + CURLcode result = CURLE_OK; struct SessionHandle *data = conn->data; struct SMTP *smtp = data->state.proto.smtp; if(!smtp) { smtp = data->state.proto.smtp = calloc(sizeof(struct SMTP), 1); if(!smtp) - return CURLE_OUT_OF_MEMORY; + result = CURLE_OUT_OF_MEMORY; } - return CURLE_OK; + return result; } /* For the SMTP "protocol connect" and "doing" phases only */ |