From 0321dae07b030e7cf0be1b31254ac9ee942e8790 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Tue, 28 Feb 2006 16:17:27 -0500 Subject: [PATCH] BUG: Handle buggy streams --- Source/cmCTest.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmCTest.h b/Source/cmCTest.h index c51a112fa..44a4c13f1 100644 --- a/Source/cmCTest.h +++ b/Source/cmCTest.h @@ -393,6 +393,10 @@ public: inline std::ostream& operator<< (std::ostream& os, const cmCTestLogWrite& c) { + if (!c.Length) + { + return os; + } os.write(c.Data, c.Length); os.flush(); return os;