Skip to contentSkip to conversation

master - dmsetup: initilize winsize struct

PATCH Zdenek Kabelac 1 participant 1 message Sep 1, 2020

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=0f377a04e5563166e4b865e92bc36d088107561a
Commit:        0f377a04e5563166e4b865e92bc36d088107561a
Parent:        2fbc578cfa0bde161b7583978537d2023e5d6e0c
Author:        Zdenek Kabelac <[email protected]>
AuthorDate:    Sat Aug 29 20:35:49 2020 +0200
Committer:     Zdenek Kabelac <[email protected]>
CommitterDate: Tue Sep 1 17:57:50 2020 +0200

dmsetup: initilize winsize struct

Ensure winsize struct is always defined.

---
 libdm/dm-tools/dmsetup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libdm/dm-tools/dmsetup.c +1 -1
index bf2762ae7..46fa81069 100644
@@ -6494,7 +6494,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 */