From 344273a7e0a6899451836e6072fecebea4a6ac24 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 10 Dec 2014 02:58:25 +0100 Subject: add xmemdup macro MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/registry.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mds-registry/registry.c') diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c index b13c7b4..4a35975 100644 --- a/src/mds-registry/registry.c +++ b/src/mds-registry/registry.c @@ -383,7 +383,8 @@ static int list_registry(const char* recv_client_id, const char* recv_message_id /* Send message. */ fail_if (full_send(send_buffer + ptr, strlen(send_buffer + ptr))); - return full_send(send_buffer, ptr); + fail_if (full_send(send_buffer, ptr)); + return 0; fail: return -1; } -- cgit v1.2.3-70-g09d2