Fix uninitialized variable bugs
This commit is contained in:
parent
174089e4f3
commit
a5b638ae7b
@ -459,12 +459,14 @@ static void handle_commands(void)
|
||||
}
|
||||
case 3: // UnregisterProgram
|
||||
{
|
||||
prog_handle = *(u64 *)&cmdbuf[1];
|
||||
|
||||
if (g_cached_prog_handle == prog_handle)
|
||||
{
|
||||
g_cached_prog_handle = 0;
|
||||
}
|
||||
cmdbuf[0] = 0x30040;
|
||||
cmdbuf[1] = loader_UnregisterProgram(*(u64 *)&cmdbuf[1]);
|
||||
cmdbuf[1] = loader_UnregisterProgram(prog_handle);
|
||||
break;
|
||||
}
|
||||
case 4: // GetProgramInfo
|
||||
|
@ -173,7 +173,7 @@ void MiscellaneousMenu_InputRedirection(void)
|
||||
Result res;
|
||||
char buf[65];
|
||||
bool wasEnabled = inputRedirectionEnabled;
|
||||
bool cantStart;
|
||||
bool cantStart = false;
|
||||
|
||||
if(wasEnabled)
|
||||
{
|
||||
|
Reference in New Issue
Block a user