[Libreoffice-commits] .: desktop/unx

Michael Meeks michael at kemper.freedesktop.org
Thu May 26 09:24:36 PDT 2011


 desktop/unx/splash/unxsplash.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit fcfa595bea7186f4cb4620d6987a323a3d63a6ea
Author: Michael Meeks <michael.meeks at novell.com>
Date:   Thu May 26 17:23:20 2011 +0100

    fix crash when tracing with -splash-pipe=0

diff --git a/desktop/unx/splash/unxsplash.cxx b/desktop/unx/splash/unxsplash.cxx
index 3a200dd..ca2b209 100644
--- a/desktop/unx/splash/unxsplash.cxx
+++ b/desktop/unx/splash/unxsplash.cxx
@@ -77,6 +77,8 @@ void SAL_CALL UnxSplashScreen::end()
 #if OSL_DEBUG_LEVEL > 1
     fprintf( stderr, "UnxSplashScreen::end()\n" );
 #endif
+    if( !m_pOutFd )
+        return;
 
     fprintf( m_pOutFd, "end\n" );
     fflush( m_pOutFd );
@@ -88,6 +90,8 @@ void SAL_CALL UnxSplashScreen::reset()
 #if OSL_DEBUG_LEVEL > 1
     fprintf( stderr, "UnxSplashScreen::reset()\n" );
 #endif
+    if( !m_pOutFd )
+        return;
 
     fprintf( m_pOutFd, "restart\n" );
     fflush( m_pOutFd );


More information about the Libreoffice-commits mailing list