masqmail

changeset 351:4c046561582a

Minor refactoring
author markus schnalke <meillo@marmaro.de>
date Thu, 14 Jul 2011 14:12:32 +0200
parents 332999b1303f
children 4905a1d9e6a7
files src/message.c
diffstat 1 files changed, 2 insertions(+), 11 deletions(-) [+]
line diff
     1.1 --- a/src/message.c	Thu Jul 14 12:00:46 2011 +0200
     1.2 +++ b/src/message.c	Thu Jul 14 14:12:32 2011 +0200
     1.3 @@ -163,17 +163,8 @@
     1.4  msg_out*
     1.5  create_msg_out(message * msg)
     1.6  {
     1.7 -	msg_out *msgout = NULL;
     1.8 -
     1.9 -	msgout = g_malloc(sizeof(msg_out));
    1.10 -	if (msgout) {
    1.11 -		msgout->msg = msg;
    1.12 -		msgout->return_path = NULL;
    1.13 -		msgout->rcpt_list = NULL;
    1.14 -
    1.15 -		msgout->hdr_list = NULL;
    1.16 -		msgout->xtra_hdr_list = NULL;
    1.17 -	}
    1.18 +	msg_out *msgout = g_malloc0(sizeof(msg_out));
    1.19 +	msgout->msg = msg;
    1.20  	return msgout;
    1.21  }
    1.22