fixed a couple of reportedly uninitiated variables in the tools.

This commit is contained in:
Robbbert 2022-04-03 02:03:40 +11:00
parent 5172c6297e
commit 876d4f1a58
4 changed files with 6 additions and 6 deletions

View File

@ -107,10 +107,10 @@ private:
floppy_image m_floppy_image;
const floppy_image_format_t *m_floppy_fs_converter;
const floppy_image_format_t *m_floppy_fs_converter = nullptr;
std::vector<u8> m_sector_image;
std::unique_ptr<fs::fsblk_t> m_fsblk;
const fs::manager_t *m_fsm;
const fs::manager_t *m_fsm = nullptr;
std::unique_ptr<fs::filesystem_t> m_fs;
};

View File

@ -115,9 +115,9 @@ private:
// Content
std::vector<sif_file_ptr_t> content;
// First file on track 1
file_no_t file_track_1;
file_no_t file_track_1{};
// No. of first record on track 1
uint16_t record_track_1;
uint16_t record_track_1 = 0;
bool dec_rec_header(const tape_word_t *hdr , file_no_t& file_no , uint16_t& rec_no , bool& has_body , unsigned& body_len);
bool load_whole_tape();

View File

@ -727,7 +727,7 @@ static void output_report(std::string &dirname, std::string &tempheader, std::st
static int compare_screenshots(summary_file *curfile)
{
bitmap_argb32 bitmaps[MAX_COMPARES];
int unique[MAX_COMPARES];
int unique[MAX_COMPARES]{};
int numunique = 0;
/* iterate over all files and load their bitmaps */

View File

@ -679,7 +679,7 @@ class unidasm_data_buffer : public util::disasm_interface::data_buffer
{
public:
std::vector<u8> data;
offs_t base_pc;
offs_t base_pc = 0;
u32 size;
unidasm_data_buffer(util::disasm_interface *disasm, const dasm_table_entry *entry);