From f84c5e693b80cb0c62bcefba147e7a66e2b839c9 Mon Sep 17 00:00:00 2001 From: sid Date: Sat, 24 Nov 2018 13:39:58 +0800 Subject: [PATCH] win: fix msvc warning PR-URL: https://github.com/libuv/libuv/pull/2091 Reviewed-By: Anna Henningsen Reviewed-By: Colin Ihrig Reviewed-By: Jameson Nash --- src/win/tty.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/win/tty.c b/src/win/tty.c index ef4efd2ad64..f38e9a88636 100644 --- a/src/win/tty.c +++ b/src/win/tty.c @@ -360,6 +360,8 @@ int uv_tty_set_mode(uv_tty_t* tty, uv_tty_mode_t mode) { } } else { was_reading = 0; + alloc_cb = NULL; + read_cb = NULL; } uv_sem_wait(&uv_tty_output_lock);