Blame SOURCES/0007-all-Fix-uninitialized-class-members.patch

49e81a
From f1e404c33ad14f6784aa1926ae75fa49e614748e Mon Sep 17 00:00:00 2001
49e81a
From: Ming-Hung Tsai <mtsai@redhat.com>
49e81a
Date: Wed, 2 Jun 2021 12:14:34 +0800
49e81a
Subject: [PATCH 07/10] [all] Fix uninitialized class members
49e81a
49e81a
---
49e81a
 era/restore_emitter.cc               |  1 +
49e81a
 thin-provisioning/metadata_dumper.cc | 10 +++++++---
49e81a
 thin-provisioning/thin_delta.cc      |  4 +++-
49e81a
 3 files changed, 11 insertions(+), 4 deletions(-)
49e81a
49e81a
diff --git a/era/restore_emitter.cc b/era/restore_emitter.cc
49e81a
index c09fa66..7fbac7d 100644
49e81a
--- a/era/restore_emitter.cc
49e81a
+++ b/era/restore_emitter.cc
49e81a
@@ -14,6 +14,7 @@ namespace {
49e81a
 			: md_(md),
49e81a
 			  in_superblock_(false),
49e81a
 			  in_writeset_(false),
49e81a
+			  era_(0),
49e81a
 			  in_era_array_(false) {
49e81a
 		}
49e81a
 
49e81a
diff --git a/thin-provisioning/metadata_dumper.cc b/thin-provisioning/metadata_dumper.cc
49e81a
index 4feb40f..665c762 100644
49e81a
--- a/thin-provisioning/metadata_dumper.cc
49e81a
+++ b/thin-provisioning/metadata_dumper.cc
49e81a
@@ -180,7 +180,7 @@ namespace {
49e81a
 // This is about classifying and summarising btree nodes.  The use of a btree
49e81a
 // node may not be obvious when inspecting it in isolation.  But more information
49e81a
 // may be gleaned by examining child and sibling nodes.
49e81a
-// 
49e81a
+//
49e81a
 // So the process is:
49e81a
 // - scan every metadata block, summarising it's potential uses.
49e81a
 // - repeatedly iterate those summaries until we can glean no more useful information.
49e81a
@@ -474,7 +474,7 @@ namespace {
49e81a
 		node_info get_internal_info(block_manager::read_ref &rr) {
49e81a
 			node_info info;
49e81a
 			info.b = rr.get_location();
49e81a
-			 
49e81a
+
49e81a
 			// values refer to blocks, so we should have infos for them.
49e81a
 			auto n = to_node<block_traits>(rr);
49e81a
 			::uint64_t key_low = 0;
49e81a
@@ -524,7 +524,7 @@ namespace {
49e81a
 			node_info info;
49e81a
 			info.b = rr.get_location();
49e81a
 
49e81a
-			auto vsize = to_cpu<uint32_t>(hdr.value_size); 
49e81a
+			auto vsize = to_cpu<uint32_t>(hdr.value_size);
49e81a
 			info.values = to_cpu<uint32_t>(hdr.nr_entries);
49e81a
 
49e81a
 			if (vsize == sizeof(device_details_traits::disk_type)) {
49e81a
@@ -645,6 +645,10 @@ namespace {
49e81a
 	public:
49e81a
 		mapping_emit_visitor(emitter::ptr e)
49e81a
 			: e_(e),
49e81a
+			  origin_start_(0),
49e81a
+			  dest_start_(0),
49e81a
+			  time_(0),
49e81a
+			  len_(0),
49e81a
 			  in_range_(false) {
49e81a
 		}
49e81a
 
49e81a
diff --git a/thin-provisioning/thin_delta.cc b/thin-provisioning/thin_delta.cc
49e81a
index 5b31608..ee48dea 100644
49e81a
--- a/thin-provisioning/thin_delta.cc
49e81a
+++ b/thin-provisioning/thin_delta.cc
49e81a
@@ -259,7 +259,9 @@ namespace local {
49e81a
 	class simple_emitter : public diff_emitter {
49e81a
 	public:
49e81a
 		simple_emitter(indented_stream &out)
49e81a
-		: diff_emitter(out) {
49e81a
+		: diff_emitter(out),
49e81a
+		  vbegin_(0),
49e81a
+		  vend_(0) {
49e81a
 		}
49e81a
 
49e81a
 		void left_only(uint64_t vbegin, uint64_t dbegin, uint64_t len) {
49e81a
-- 
49e81a
1.8.3.1
49e81a