diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-12-10 02:58:25 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-12-10 02:58:25 +0100 |
commit | 344273a7e0a6899451836e6072fecebea4a6ac24 (patch) | |
tree | ea24fa9e12ae6dad40eeb6470c92545e14f0f8cf /src/mds-registry/registry.c | |
parent | no more direct allocations, always use macros, unless using alloca (diff) | |
download | mds-344273a7e0a6899451836e6072fecebea4a6ac24.tar.gz mds-344273a7e0a6899451836e6072fecebea4a6ac24.tar.bz2 mds-344273a7e0a6899451836e6072fecebea4a6ac24.tar.xz |
add xmemdup macro
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-registry/registry.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |