diff options
Diffstat (limited to 'src/mds-base.c')
-rw-r--r-- | src/mds-base.c | 3 |
1 files changed, 1 insertions, 2 deletions
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. */ |