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

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