aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-registry/mds-registry.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-03 04:14:13 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-03 04:16:40 +0200
commit4648c2896c2a8dccc9ba8deade1dfebf3338375f (patch)
tree2c15770b72463ae9e48c8eca9b89a3ac49ab764b /src/mds-registry/mds-registry.c
parentbeginning of mds-clipboard (diff)
downloadmds-4648c2896c2a8dccc9ba8deade1dfebf3338375f.tar.gz
mds-4648c2896c2a8dccc9ba8deade1dfebf3338375f.tar.bz2
mds-4648c2896c2a8dccc9ba8deade1dfebf3338375f.tar.xz
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-registry/mds-registry.c9
1 files changed, 7 insertions, 2 deletions
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;
}