xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/src/PlatformSupport XalanStdOutputStream.cpp
Date Thu, 27 Sep 2001 15:09:01 GMT
dbertoni    01/09/27 08:09:01

  Modified:    c/src/PlatformSupport XalanStdOutputStream.cpp
  Log:
  Check for stream state before flushing.
  
  Revision  Changes    Path
  1.6       +8 -4      xml-xalan/c/src/PlatformSupport/XalanStdOutputStream.cpp
  
  Index: XalanStdOutputStream.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/src/PlatformSupport/XalanStdOutputStream.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- XalanStdOutputStream.cpp	2001/09/26 14:10:31	1.5
  +++ XalanStdOutputStream.cpp	2001/09/27 15:09:01	1.6
  @@ -103,11 +103,15 @@
   void
   XalanStdOutputStream::doFlush()
   {
  -	m_outputStream.flush();
  -
  -	if(!m_outputStream)
  +	// Don't try to flush if the stream is in a bad state...
  +	if(m_outputStream)
   	{
  -		throw XalanStdOutputStreamWriteException(errno);
  +		m_outputStream.flush();
  +
  +		if(!m_outputStream)
  +		{
  +			throw XalanStdOutputStreamWriteException(errno);
  +		}
   	}
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message