From 7179f51176e1f3af53694e09d7ea2ca602403cf1 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 10 Dec 2014 02:21:00 +0100 Subject: no more direct allocations, always use macros, unless using alloca MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mds-base.c') diff --git a/src/mds-base.c b/src/mds-base.c index a9a942b..f6b05ff 100644 --- a/src/mds-base.c +++ b/src/mds-base.c @@ -432,8 +432,7 @@ static int base_marshal(int reexec_fd) state_n += marshal_server_size(); /* Allocate a buffer for all data. */ - state_buf = state_buf_ = malloc(state_n); - fail_if (state_buf == NULL); + fail_if (xbmalloc(state_buf = state_buf_, state_n)); /* Marshal the state of the server. */ -- cgit v1.2.3-70-g09d2