FSCORE-610 Initialize when no console

This commit is contained in:
Jeff Lenk 2010-05-19 08:11:02 -05:00
parent 03d07b4cb6
commit 909ad64221

View File

@ -1326,7 +1326,7 @@ static int console_bufferInput(char *addchars, int len, char *cmd, int key)
static BOOL console_readConsole(HANDLE conIn, char *buf, int len, int *pRed, int *key)
{
DWORD recordIndex, bufferIndex, toRead, red;
DWORD recordIndex, bufferIndex, toRead = 0, red;
PINPUT_RECORD pInput;
GetNumberOfConsoleInputEvents(conIn, &toRead);