diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-03 04:14:13 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-03 04:16:40 +0200 |
commit | 4648c2896c2a8dccc9ba8deade1dfebf3338375f (patch) | |
tree | 2c15770b72463ae9e48c8eca9b89a3ac49ab764b /src/mds-echo.c | |
parent | beginning of mds-clipboard (diff) | |
download | mds-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-echo.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mds-echo.c b/src/mds-echo.c index 25f1fa5..309c28d 100644 --- a/src/mds-echo.c +++ b/src/mds-echo.c @@ -107,8 +107,13 @@ int initialise_server(void) if (full_send(message, strlen(message))) return 1; server_initialised(); - mds_message_initialise(&received); + fail_if (mds_message_initialise(&received)); + return 0; + pfail: + xperror(*argv); + mds_message_destroy(&received); + return 1; } |