]> sourceware.org Git - lvm2.git/commitdiff
gcc: ensure pointer is always defined
authorZdenek Kabelac <zkabelac@redhat.com>
Wed, 10 Feb 2021 13:30:58 +0000 (14:30 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Wed, 10 Feb 2021 14:39:03 +0000 (15:39 +0100)
daemons/lvmlockd/lvmlockd-core.c

index c4abf66be0d030450752f7836429c6444a51fe3c..b271a9aeef38f93c8399d743ec30b7aa473d3aed 100644 (file)
@@ -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;
 
This page took 0.075651 seconds and 5 git commands to generate.