diff options
Diffstat (limited to 'win32/win32.c')
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/win32.c b/win32/win32.c index f87cf8b696..5aea1b5e78 100644 --- a/win32/win32.c +++ b/win32/win32.c @@ -5045,7 +5045,7 @@ rb_w32_read(int fd, void *buf, size_t size) size_t ret; OVERLAPPED ol, *pol = NULL; BOOL isconsole; - BOOL islineinput; + BOOL islineinput = FALSE; int start = 0; if (is_socket(sock)) @@ -5070,7 +5070,7 @@ rb_w32_read(int fd, void *buf, size_t size) ret = 0; isconsole = is_console(_osfhnd(fd)); - if(isconsole){ + if (isconsole) { DWORD mode; GetConsoleMode((HANDLE)_osfhnd(fd),&mode); islineinput = (mode & ENABLE_LINE_INPUT) != 0; |