summaryrefslogtreecommitdiff
path: root/lib/smtp.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-03-09 22:25:40 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-03-09 22:25:40 +0000
commit059647f398b7b83e291909ce9d56dd9ecf9011de (patch)
tree68a1a5460b265f92bfc73cc5f188e7497a81f890 /lib/smtp.c
parent136a3a0ee25f28fec1dde216467389f9e6e4f65c (diff)
downloadcurl-059647f398b7b83e291909ce9d56dd9ecf9011de.tar.gz
email: Removed hard returns from init functions
Diffstat (limited to 'lib/smtp.c')
-rw-r--r--lib/smtp.c5
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 */