diff options
author | David Teigland <teigland@redhat.com> | 2015-06-30 13:24:26 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2015-06-30 13:24:26 -0500 |
commit | 24239de3dbae7a7edfd6eceab702a32b13a9d051 (patch) | |
tree | 8f9e2367251515e142617000148a5b2e77cc8d2d | |
parent | 904da8fa225e174cbbc5611ea98659cd280b03fb (diff) | |
download | lvm2-24239de3dbae7a7edfd6eceab702a32b13a9d051.tar.gz |
silence uninitialized variable warnings
when building without lvmlockd
-rw-r--r-- | lib/locking/lvmlockd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/locking/lvmlockd.h b/lib/locking/lvmlockd.h index 21b49e7fb..8199c0385 100644 --- a/lib/locking/lvmlockd.h +++ b/lib/locking/lvmlockd.h @@ -197,6 +197,7 @@ static inline int lockd_gl(struct cmd_context *cmd, const char *def_mode, uint32 static inline int lockd_vg(struct cmd_context *cmd, const char *vg_name, const char *def_mode, uint32_t flags, uint32_t *lockd_state) { + *lockd_state = 0; return 1; } |