diff options
author | Michael Meeks <michael.meeks@novell.com> | 2011-05-26 17:23:20 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@novell.com> | 2011-05-26 17:23:39 +0100 |
commit | e1e771c0c77e02d90bebe2f0fd61fdae3129b054 (patch) | |
tree | 8f72eeddc5dfec13d3cfb4c5f78fffe00f90b7b9 /desktop | |
parent | a2ce10963cbaaf4d6292b1ba3bc0dc6878157662 (diff) |
fix crash when tracing with -splash-pipe=0
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/unx/splash/unxsplash.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/unx/splash/unxsplash.cxx b/desktop/unx/splash/unxsplash.cxx index 3a200dd1e927..ca2b2099be63 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 ); |