1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

lvmlockd: set default result value

The default error value should be set indicating
an error.
This commit is contained in:
David Teigland 2016-02-23 14:35:40 -06:00
parent 0236a34224
commit eccc91f9b0

View File

@ -142,6 +142,8 @@ static int _lockd_result(daemon_reply reply, int *result, uint32_t *lockd_flags)
const char *flags_str = NULL;
const char *lock_type = NULL;
*result = -1;
if (reply.error) {
log_error("lockd_result reply error %d", reply.error);
return 0;