diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-28 21:17:27 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-02-28 21:17:27 (GMT) |
commit | 0321dae07b030e7cf0be1b31254ac9ee942e8790 (patch) | |
tree | 9185a0bc8e5a32ccdf47340e90e42762dcafbd9c /Source/cmCTest.h | |
parent | 5b638bb1362aad1a38eef1fb318b7a7e5b775d7b (diff) | |
download | CMake-0321dae07b030e7cf0be1b31254ac9ee942e8790.zip CMake-0321dae07b030e7cf0be1b31254ac9ee942e8790.tar.gz CMake-0321dae07b030e7cf0be1b31254ac9ee942e8790.tar.bz2 |
BUG: Handle buggy streams
Diffstat (limited to 'Source/cmCTest.h')
-rw-r--r-- | Source/cmCTest.h | 4 |
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; |