Skip to contentSkip to conversation

main - clang: always initialized values

PATCH Zdenek Kabelac 1 participant 1 message Apr 23, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=21bdd0a3597eaa138906bc467f6749e70bc60e78
Commit:        21bdd0a3597eaa138906bc467f6749e70bc60e78
Parent:        8f85834a330c1b803c130d9f7a33633267fb8d5b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Apr 22 21:49:30 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Apr 23 23:00:55 2021 +0200

clang: always initialized values

---
 device_mapper/libdm-report.c | 2 +-
 libdm/libdm-report.c         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
device_mapper/libdm-report.c +1 -1
index f14aa8bc7..c6e7a2a03 100644
@@ -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;
libdm/libdm-report.c +1 -1
index 5433e74ae..2efcc07c9 100644
@@ -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;