]> sourceware.org Git - lvm2.git/commitdiff
clang: always initialized values
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 22 Apr 2021 19:49:30 +0000 (21:49 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 23 Apr 2021 21:00:55 +0000 (23:00 +0200)
device_mapper/libdm-report.c
libdm/libdm-report.c

index f14aa8bc7ea6fc7039901fa9130e262f28f11f28..c6e7a2a03f21b1c08bf8e779b89a4f0ecf8b7697 100644 (file)
@@ -3774,7 +3774,7 @@ static struct selection_node *_parse_selection(struct dm_report *rh,
        struct field_selection *fs;
        struct selection_node *sn;
        const char *ws, *we; /* field name */
-       const char *vs, *ve; /* value */
+       const char *vs = NULL, *ve = NULL; /* value */
        const char *last;
        uint32_t flags, field_num;
        int implicit;
index 5433e74aea98f603cbdfd3034f37d9e5d478aeb0..2efcc07c9dbb7f4400fd1de587dc9a628e4a9203 100644 (file)
@@ -3773,7 +3773,7 @@ static struct selection_node *_parse_selection(struct dm_report *rh,
        struct field_selection *fs;
        struct selection_node *sn;
        const char *ws, *we; /* field name */
-       const char *vs, *ve; /* value */
+       const char *vs = NULL, *ve = NULL; /* value */
        const char *last;
        uint32_t flags, field_num;
        int implicit;
This page took 0.047291 seconds and 5 git commands to generate.