summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2011-04-22 16:16:07 +0200
committerLuboš Luňák <l.lunak@suse.cz>2011-04-22 16:16:07 +0200
commita1c0f9c6bedb3bc72ce8c5c5380802e9bcb80beb (patch)
tree1023d76d400791be1482d034c659d28c7540bb17 /sal
parent08d3fdffae241ccebb55add28a6bdee624b164f2 (diff)
make backtrace from OSL_ASSERT disabled by default
http://lists.freedesktop.org/archives/libreoffice/2011-April/010724.html
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/diagnose.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c
index 5425810ae408..5363182fcd6b 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);