summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmCTest.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmCTest.h b/Source/cmCTest.h
index c51a112..44a4c13 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;