From: Karel Zak Date: Fri, 19 Aug 2022 09:40:27 +0000 (+0200) Subject: libblkid: (topology) init variables for DM X-Git-Tag: v2.39-rc1~546 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=819210f37d66949f54fb2f830bc62cb3635a83d5;p=thirdparty%2Futil-linux.git libblkid: (topology) init variables for DM Addresses: https://github.com/util-linux/util-linux/issues/1776 Signed-off-by: Karel Zak --- diff --git a/libblkid/src/topology/dm.c b/libblkid/src/topology/dm.c index 1a1cb8ac00..77146e2e2c 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);