From 1cf19be2d96450b4bba520b370ff0d274ab6382f Mon Sep 17 00:00:00 2001 From: sebres Date: Wed, 3 May 2017 15:49:43 +0000 Subject: code review: restore missing "break" to step out from internal cycle "while (toWrite > 0) ..." (compared to 8.6 and previous non-patched 8.5) --- win/tclWinConsole.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/win/tclWinConsole.c b/win/tclWinConsole.c index 748f93c..e0edc46 100644 --- a/win/tclWinConsole.c +++ b/win/tclWinConsole.c @@ -1204,10 +1204,10 @@ ConsoleWriterThread( &count) == FALSE) { infoPtr->writeError = GetLastError(); done = 1; - } else { - toWrite -= count; - buf += count; + break; } + toWrite -= count; + buf += count; } /* -- cgit v0.12