From: Zdenek Kabelac Date: Wed, 10 Feb 2021 13:30:58 +0000 (+0100) Subject: gcc: ensure pointer is always defined X-Git-Tag: v2_03_12~398 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=a1e2541333ed551c41882e2a636a1ab981d425b9;p=lvm2.git gcc: ensure pointer is always defined --- 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;