From 909ad6422141548587042922837c5e6292ed37be Mon Sep 17 00:00:00 2001 From: Jeff Lenk Date: Wed, 19 May 2010 08:11:02 -0500 Subject: [PATCH] FSCORE-610 Initialize when no console --- src/switch_console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_console.c b/src/switch_console.c index a5e78f28d8..ce6c6eef1b 100644 --- a/src/switch_console.c +++ b/src/switch_console.c @@ -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);