diff options
| author | 2024-02-10 06:52:47 +1100 | |
|---|---|---|
| committer | 2024-02-10 06:52:47 +1100 | |
| commit | 85c9517c69d9beaa184e7a5fddc7b769f03d5ad7 (patch) | |
| tree | cb5637834b1c5daab4bd605bb10f7202ca172a0f /src/tools/chdman.cpp | |
| parent | 1b43d174254d8210ed371e11c05b8aad860c2adf (diff) | |
tools/chdman.cpp: Fixed bogus uninitialised local warning.
It would never use template_id uninitialised because the same condition
applied for assigning it and using it, but compilers are dumb.
Diffstat (limited to 'src/tools/chdman.cpp')
| -rw-r--r-- | src/tools/chdman.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/chdman.cpp b/src/tools/chdman.cpp index fbc67e8bd3f..9d79d88f170 100644 --- a/src/tools/chdman.cpp +++ b/src/tools/chdman.cpp @@ -1936,7 +1936,7 @@ static void do_create_hd(parameters_map ¶ms) uint32_t sectors = 0; uint32_t sector_size = output_parent.opened() ? output_parent.unit_bytes() : IDE_SECTOR_SIZE; const auto template_str = params.find(OPTION_TEMPLATE); - uint32_t template_id; + uint32_t template_id = 0; if (template_str != params.end()) { if (output_parent.opened()) |
