mirror of
https://github.com/holub/mame
synced 2025-04-23 08:49:55 +03:00
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.
This commit is contained in:
parent
1b43d17425
commit
85c9517c69
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user