summaryrefslogtreecommitdiff
path: root/sal/osl/unx/diagnose.c
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2011-10-11 06:15:37 +0200
committerDavid Tardon <dtardon@redhat.com>2011-10-11 06:21:44 +0200
commit01af504ba9b0b79fd0205d5dd81ddac2c1e0c1fd (patch)
tree3dcf1b4601c35b7d616d2e1ded3bdfc9e34f57cf /sal/osl/unx/diagnose.c
parent0123fc6d03412704ac8512339d949773b22b9cce (diff)
WaE: ISO C90 forbids mixed declarations and code
Diffstat (limited to 'sal/osl/unx/diagnose.c')
-rw-r--r--sal/osl/unx/diagnose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/diagnose.c b/sal/osl/unx/diagnose.c
index ae847b6d02e0..ae5e625d1bc2 100644
--- a/sal/osl/unx/diagnose.c
+++ b/sal/osl/unx/diagnose.c
@@ -222,6 +222,7 @@ sal_Bool SAL_CALL osl_assertFailedLine (
// after reporting the assertion, abort if told so by SAL_DIAGNOSE_ABORT, but *not* if
// assertions are routed to some external instance
char const * env = getenv( "SAL_DIAGNOSE_ABORT" );
+ char const * envBacktrace = getenv( "SAL_DIAGNOSE_BACKTRACE" );
sal_Bool const doAbort = ( ( env != NULL ) && ( *env != '\0' ) && ( f == NULL ) );
/* If there's a callback for detailed messages, use it */
@@ -256,7 +257,6 @@ sal_Bool SAL_CALL osl_assertFailedLine (
OSL_DIAGNOSE_OUTPUTMESSAGE(f, szMessage);
/* should we output backtrace? */
- char const * envBacktrace = getenv( "SAL_DIAGNOSE_BACKTRACE" );
if( envBacktrace != NULL && *envBacktrace != '\0' )
osl_diagnose_backtrace_Impl(f);