From 4648c2896c2a8dccc9ba8deade1dfebf3338375f Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 3 Aug 2014 04:14:13 +0200 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-registry/mds-registry.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/mds-registry') diff --git a/src/mds-registry/mds-registry.c b/src/mds-registry/mds-registry.c index 58463af..957310e 100644 --- a/src/mds-registry/mds-registry.c +++ b/src/mds-registry/mds-registry.c @@ -112,8 +112,13 @@ int initialise_server(void) reg_table.key_comparator = (compare_func*)string_comparator; reg_table.hasher = (hash_func*)string_hash; server_initialised(); - mds_message_initialise(&received); - return 0; + fail_if (mds_message_initialise(&received)); + + return 0; + pfail: + xperror(*argv); + mds_message_destroy(&received); + return 1; } -- cgit v1.2.3-70-g09d2