Core: Fix potential uninitialized var usage in WII_IPC_HLE_Device_usb

If "if (ReadStoredLinkKey->read_all == 1)" is not true, then
num_keys_read would be used uninitialized.
This commit is contained in:
Lioncash 2014-07-13 15:38:40 -04:00
parent 16582a0459
commit fae0cf3698
1 changed files with 1 additions and 0 deletions

View File

@ -1512,6 +1512,7 @@ void CWII_IPC_HLE_Device_usb_oh1_57e_305::CommandReadStoredLinkKey(u8* _Input)
hci_read_stored_link_key_rp Reply;
Reply.status = 0x00;
Reply.num_keys_read = 0;
Reply.max_num_keys = 255;
if (ReadStoredLinkKey->read_all == 1)