Fix uninitialized use in mitsumi_cdrom_reset
This commit is contained in:
@@ -145,6 +145,8 @@ mitsumi_cdrom_reset(mcd_t *dev)
|
|||||||
{
|
{
|
||||||
cdrom_t cdrom;
|
cdrom_t cdrom;
|
||||||
|
|
||||||
|
cdrom.host_drive = 0;
|
||||||
|
|
||||||
dev->stat = cdrom.host_drive ? (STAT_READY | STAT_CHANGE) : 0;
|
dev->stat = cdrom.host_drive ? (STAT_READY | STAT_CHANGE) : 0;
|
||||||
dev->cmdrd_count = 0;
|
dev->cmdrd_count = 0;
|
||||||
dev->cmdbuf_count = 0;
|
dev->cmdbuf_count = 0;
|
||||||
|
Reference in New Issue
Block a user