[lvm-devel] stable-2.02 - dmsetup: initilize winsize struct

Zdenek Kabelac zkabelac at sourceware.org
Fri Oct 16 19:10:56 UTC 2020


Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1ac22fb00b5e95645eabd886967cbcaf4768ff09
Commit:        1ac22fb00b5e95645eabd886967cbcaf4768ff09
Parent:        6b97921ee849914e1476d718208ac449cf3c982e
Author:        Zdenek Kabelac <zkabelac at redhat.com>
AuthorDate:    Sat Aug 29 20:35:49 2020 +0200
Committer:     Zdenek Kabelac <zkabelac at redhat.com>
CommitterDate: Fri Oct 16 16:02:06 2020 +0200

dmsetup: initilize winsize struct

Ensure winsize struct is always defined.
---
 tools/dmsetup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index 8837826e9..d158b7991 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -6491,7 +6491,7 @@ static int _stats(CMD_ARGS)
 static int _process_tree_options(const char *options)
 {
 	const char *s, *end;
-	struct winsize winsz;
+	struct winsize winsz = { 0 };
 	size_t len;
 
 	/* Symbol set default */




More information about the lvm-devel mailing list