All of lore.kernel.org
 help / color / mirror / Atom feed
* stable-2.02 - dmsetup: initilize winsize struct
@ 2020-10-16 19:10 Zdenek Kabelac
  0 siblings, 0 replies; only message in thread
From: Zdenek Kabelac @ 2020-10-16 19:10 UTC (permalink / raw)
  To: lvm-devel

Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1ac22fb00b5e95645eabd886967cbcaf4768ff09
Commit:        1ac22fb00b5e95645eabd886967cbcaf4768ff09
Parent:        6b97921ee849914e1476d718208ac449cf3c982e
Author:        Zdenek Kabelac <zkabelac@redhat.com>
AuthorDate:    Sat Aug 29 20:35:49 2020 +0200
Committer:     Zdenek Kabelac <zkabelac@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 */



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-16 19:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-10-16 19:10 stable-2.02 - dmsetup: initilize winsize struct Zdenek Kabelac

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.