[Libreoffice-commits] .: sal/osl
Lubos Lunak
llunak at kemper.freedesktop.org
Fri Apr 22 07:17:02 PDT 2011
sal/osl/unx/diagnose.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit d7600b612ba8b946d6a8abb1b64c18b3d29c4cb0
Author: LuboÅ¡ LuÅák <l.lunak at suse.cz>
Date: Fri Apr 22 16:16:07 2011 +0200
make backtrace from OSL_ASSERT disabled by default
http://lists.freedesktop.org/archives/libreoffice/2011-April/010724.html
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c
index 30d15ad..9dae240 100644
--- a/sal/osl/unx/diagnose.c
+++ b/sal/osl/unx/diagnose.c
@@ -256,7 +256,9 @@ sal_Bool SAL_CALL osl_assertFailedLine (
OSL_DIAGNOSE_OUTPUTMESSAGE(f, szMessage);
/* output backtrace */
- osl_diagnose_backtrace_Impl(f);
+ char const * envBacktrace = getenv( "SAL_DIAGNOSE_BACKTRACE" );
+ if( envBacktrace != NULL && *envBacktrace != '\0' );
+ osl_diagnose_backtrace_Impl(f);
/* release lock and leave */
pthread_mutex_unlock(&g_mutex);
More information about the Libreoffice-commits
mailing list