diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-10 14:30:58 +0100 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-02-10 15:39:03 +0100 |
commit | a1e2541333ed551c41882e2a636a1ab981d425b9 (patch) | |
tree | 49d3fca2383cda5583cf9b83fd4e70b2576fd0ba | |
parent | 82bffa99ada0173704739b6fff856a3d6cb5455d (diff) | |
download | lvm2-a1e2541333ed551c41882e2a636a1ab981d425b9.tar.gz |
gcc: ensure pointer is always defined
-rw-r--r-- | daemons/lvmlockd/lvmlockd-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/lvmlockd/lvmlockd-core.c b/daemons/lvmlockd/lvmlockd-core.c index c4abf66be..b271a9aee 100644 --- a/daemons/lvmlockd/lvmlockd-core.c +++ b/daemons/lvmlockd/lvmlockd-core.c @@ -872,7 +872,7 @@ static int read_adopt_file(struct list_head *vg_lockd) char vg_uuid[72]; char lm_type_str[16]; char mode[8]; - struct lockspace *ls, *ls2; + struct lockspace *ls = NULL, *ls2; struct resource *r; FILE *fp; |