소스 검색

BUG: Handle buggy streams

Andy Cedilnik 20 년 전
부모
커밋
0321dae07b
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      Source/cmCTest.h

+ 4 - 0
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;