Skip to contentSkip to conversation

main - gcc: always initialize vg_complete

PATCH Zdenek Kabelac 1 participant 1 message Oct 14, 2021

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=04725763a1eb20565cc66e1fd009d9ee93220524
Commit:        04725763a1eb20565cc66e1fd009d9ee93220524
Parent:        14cf579263cb9121a8f06396c6257453492e043b
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Thu Oct 14 23:43:12 2021 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Fri Oct 15 00:09:07 2021 +0200

gcc: always initialize vg_complete

---
 tools/pvscan.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/pvscan.c +1 -1
index 6ea7a77e5..8e2611361 100644
@@ -1295,7 +1295,7 @@ static int _online_devs(struct cmd_context *cmd, int do_all, struct dm_list *pvs
 	int pvs_online;
 	int pvs_offline;
 	int pvs_unknown;
-	int vg_complete;
+	int vg_complete = 0;
 	int do_full_check;
 	int ret = 1;