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:
parent
0236a34224
commit
eccc91f9b0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user