summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2017-12-18 15:19:17 -0600
committerMarian Csontos <mcsontos@redhat.com>2018-01-22 19:32:30 +0100
commitd70ba36fbb7851979265d7635740111a6aee5937 (patch)
tree5d3fd0d749d2a6cb72f42396aa2ed0d83e2b73e3
parentecb815d13cc5357eadeb7e9b03326d70f1f64ea0 (diff)
downloadlvm2-d70ba36fbb7851979265d7635740111a6aee5937.tar.gz
lvmlockd: clear coverity complaint
from previous coverity fix, it's never happy. (cherry picked from commit 3f9ae846b89a2963a4ca72cfa0281aab0bedcc02)
-rw-r--r--lib/locking/lvmlockd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/locking/lvmlockd.c b/lib/locking/lvmlockd.c
index 0365797da..a4684b496 100644
--- a/lib/locking/lvmlockd.c
+++ b/lib/locking/lvmlockd.c
@@ -2148,7 +2148,7 @@ int lockd_lv_name(struct cmd_context *cmd, struct volume_group *vg,
static int _lockd_lv_thin(struct cmd_context *cmd, struct logical_volume *lv,
const char *def_mode, uint32_t flags)
{
- struct logical_volume *pool_lv;
+ struct logical_volume *pool_lv = NULL;
if (lv_is_thin_volume(lv)) {
struct lv_segment *pool_seg = first_seg(lv);