From 0f377a04e5563166e4b865e92bc36d088107561a Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 29 Aug 2020 20:35:49 +0200 Subject: [PATCH] dmsetup: initilize winsize struct Ensure winsize struct is always defined. --- libdm/dm-tools/dmsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c index bf2762ae7..46fa81069 100644 --- a/libdm/dm-tools/dmsetup.c +++ b/libdm/dm-tools/dmsetup.c @@ -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 */