[all] Fix uninitialized class members

This commit is contained in:
Ming-Hung Tsai 2021-06-02 12:14:34 +08:00
parent 3145a1f4de
commit 2e62363446
3 changed files with 11 additions and 4 deletions

View File

@ -14,6 +14,7 @@ namespace {
: md_(md),
in_superblock_(false),
in_writeset_(false),
era_(0),
in_era_array_(false) {
}

View File

@ -645,6 +645,10 @@ namespace {
public:
mapping_emit_visitor(emitter::ptr e)
: e_(e),
origin_start_(0),
dest_start_(0),
time_(0),
len_(0),
in_range_(false) {
}

View File

@ -214,7 +214,9 @@ namespace {
class simple_emitter : public diff_emitter {
public:
simple_emitter(indented_stream &out)
: diff_emitter(out) {
: diff_emitter(out),
vbegin_(0),
vend_(0) {
}
void left_only(uint64_t vbegin, uint64_t dbegin, uint64_t len) {