From 819210f37d66949f54fb2f830bc62cb3635a83d5 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Fri, 19 Aug 2022 11:40:27 +0200
Subject: [PATCH] libblkid: (topology) init variables for DM

Addresses: https://github.com/util-linux/util-linux/issues/1776
Signed-off-by: Karel Zak <kzak@redhat.com>

Reference:https://github.com/util-linux/util-linux/commit/819210f37d66949f54fb2f830bc62cb3635a83d5
Conflict:NA
---
 libblkid/src/topology/dm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libblkid/src/topology/dm.c b/libblkid/src/topology/dm.c
index 1a1cb8ac0..77146e2e2 100644
--- a/libblkid/src/topology/dm.c
+++ b/libblkid/src/topology/dm.c
@@ -34,10 +34,10 @@ static int probe_dm_tp(blkid_probe pr,
 		"/usr/sbin/dmsetup",
 		"/sbin/dmsetup"
 	};
-	int dmpipe[] = { -1, -1 }, stripes, stripesize;
+	int dmpipe[] = { -1, -1 }, stripes = 0, stripesize = 0;
 	const char *cmd = NULL;
 	FILE *stream = NULL;
-	long long  offset, size;
+	long long  offset = 0, size = 0;
 	size_t i;
 	dev_t devno = blkid_probe_get_devno(pr);
 
-- 
2.31.1

